/* Greenleaf Consulting - Complete Standalone Stylesheet
   Demo template: B2B / Professional Services
   Hand-coded. No frameworks, no build step, no external assets.
   Every visual is CSS or inline SVG so the site works under a strict CSP
   (img-src 'self' data:; font-src 'self'). */

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

/* ========== Self-Hosted Fonts ========== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/source-serif-italic.woff2') format('woff2');
}

/* ========== Design Tokens ========== */
:root {
  --gl-bg: #fbfcfb;
  --gl-surface: #ffffff;
  --gl-surface-alt: #f1f5f2;
  --gl-text: #16211c;
  --gl-muted: #4f5b55;
  --gl-border: #dde4df;
  --gl-border-strong: #c3cec8;

  --gl-primary: #15803d;
  --gl-primary-strong: #14532d;
  --gl-primary-soft: #e7f5ec;
  --gl-accent: #b45309;
  --gl-accent-soft: #fdf3e6;

  --gl-on-primary: #ffffff;
  --gl-ring: rgba(21, 128, 61, 0.28);

  --gl-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gl-font-quote: 'Source Serif', Georgia, 'Times New Roman', serif;

  --gl-space-xs: 0.5rem;
  --gl-space-sm: 1rem;
  --gl-space-md: 1.5rem;
  --gl-space-lg: 2rem;
  --gl-space-xl: 3rem;
  --gl-space-2xl: 4.5rem;

  --gl-radius-sm: 6px;
  --gl-radius: 10px;
  --gl-radius-lg: 18px;

  --gl-shadow: 0 1px 2px rgba(15, 32, 24, 0.06), 0 4px 12px rgba(15, 32, 24, 0.05);
  --gl-shadow-lg: 0 12px 32px rgba(15, 32, 24, 0.10);

  --gl-max: 1160px;
}

/* Dark mode - explicit toggle */
[data-theme="dark"] .greenleaf {
  --gl-bg: #0f1512;
  --gl-surface: #161d19;
  --gl-surface-alt: #1c2521;
  --gl-text: #e4eae6;
  --gl-muted: #a6b2ac;
  --gl-border: #2b3631;
  --gl-border-strong: #3d4a44;

  --gl-primary: #4ade80;
  --gl-primary-strong: #86efac;
  --gl-primary-soft: #16281d;
  --gl-accent: #fbbf24;
  --gl-accent-soft: #2a2011;

  --gl-on-primary: #08150d;
  --gl-ring: rgba(74, 222, 128, 0.32);

  --gl-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.35);
  --gl-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* Dark mode - system preference (when no explicit theme set) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .greenleaf {
    --gl-bg: #0f1512;
    --gl-surface: #161d19;
    --gl-surface-alt: #1c2521;
    --gl-text: #e4eae6;
    --gl-muted: #a6b2ac;
    --gl-border: #2b3631;
    --gl-border-strong: #3d4a44;

    --gl-primary: #4ade80;
    --gl-primary-strong: #86efac;
    --gl-primary-soft: #16281d;
    --gl-accent: #fbbf24;
    --gl-accent-soft: #2a2011;

    --gl-on-primary: #08150d;
    --gl-ring: rgba(74, 222, 128, 0.32);

    --gl-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.35);
    --gl-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

/* ========== Base ========== */
body.greenleaf {
  font-family: var(--gl-font);
  background: var(--gl-bg);
  color: var(--gl-text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: var(--gl-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* WCAG 1.4.1 -- a link sitting inside a block of body text must not rely on
   colour alone. Anything inside running prose gets a persistent underline;
   navigation lists and buttons, which are not inside a text block, opt out. */
p a,
li a,
td a,
th a,
dd a,
address a,
summary a,
blockquote a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.gl-nav-list a,
.gl-footer-links a,
.gl-team-tags a,
.gl-hero-proof a,
.gl-btn,
.gl-logo {
  text-decoration: none;
}

.gl-nav-list a:hover,
.gl-footer-links a:hover,
.gl-btn:hover,
.gl-logo:hover {
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
}

/* ========== Accessibility helpers ========== */
.gl-skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gl-primary);
  color: var(--gl-on-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--gl-radius);
  z-index: 1200;
  font-weight: 600;
  transition: top 0.2s;
}

.gl-skip-link:focus {
  top: 1rem;
  text-decoration: none;
}

.gl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ========== Layout ========== */
.gl-wrap {
  max-width: var(--gl-max);
  margin: 0 auto;
  padding-left: var(--gl-space-md);
  padding-right: var(--gl-space-md);
  width: 100%;
}

.gl-section {
  padding-top: var(--gl-space-2xl);
  padding-bottom: var(--gl-space-2xl);
}

.gl-section-alt {
  background: var(--gl-surface-alt);
  border-top: 1px solid var(--gl-border);
  border-bottom: 1px solid var(--gl-border);
}

.gl-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gl-primary);
  margin-bottom: 0.75rem;
}

.gl-section-head {
  max-width: 40rem;
  margin-bottom: var(--gl-space-xl);
}

.gl-section-head.gl-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.gl-section-title {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.gl-section-sub {
  margin-top: 0.85rem;
  color: var(--gl-muted);
  font-size: 1.02rem;
}

/* ========== Buttons ========== */
.gl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--gl-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}

.gl-btn:hover {
  text-decoration: none;
}

.gl-btn-primary {
  background: var(--gl-primary);
  color: var(--gl-on-primary);
  border-color: var(--gl-primary);
}

.gl-btn-primary:hover {
  background: var(--gl-primary-strong);
  border-color: var(--gl-primary-strong);
  color: var(--gl-on-primary);
}

[data-theme="dark"] .gl-btn-primary:hover {
  color: #08150d;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .gl-btn-primary:hover {
    color: #08150d;
  }
}

.gl-btn-outline {
  background: transparent;
  color: var(--gl-text);
  border-color: var(--gl-border-strong);
}

.gl-btn-outline:hover {
  border-color: var(--gl-primary);
  color: var(--gl-primary);
}

.gl-btn-ghost {
  background: transparent;
  color: var(--gl-primary);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

.gl-btn-full {
  width: 100%;
}

.gl-btn-lg {
  padding: 1rem 1.9rem;
  font-size: 1.03rem;
}

/* ========== Header / Nav ========== */
.gl-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--gl-surface);
  border-bottom: 1px solid var(--gl-border);
}

.gl-nav {
  max-width: var(--gl-max);
  margin: 0 auto;
  padding: 0.85rem var(--gl-space-md);
  display: flex;
  align-items: center;
  gap: var(--gl-space-sm);
}

.gl-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--gl-text);
  margin-right: auto;
}

.gl-logo:hover {
  text-decoration: none;
  color: var(--gl-primary);
}

.gl-logo-mark {
  color: var(--gl-primary);
  flex: none;
}

.gl-nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.gl-nav-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--gl-radius-sm);
  color: var(--gl-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.gl-nav-list a:hover {
  color: var(--gl-text);
  background: var(--gl-surface-alt);
  text-decoration: none;
}

.gl-nav-list a[aria-current="page"] {
  color: var(--gl-primary);
  font-weight: 600;
}

.gl-nav-cta {
  margin-left: 0.4rem;
}

.gl-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  background: transparent;
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius-sm);
  color: var(--gl-text);
  cursor: pointer;
}

.gl-icon-btn:hover {
  border-color: var(--gl-border-strong);
  background: var(--gl-surface-alt);
}

.gl-nav-toggle {
  display: none;
}

/* theme toggle icon swap */
.gl-icon-moon { display: none; }
[data-theme="dark"] .gl-icon-sun { display: none; }
[data-theme="dark"] .gl-icon-moon { display: block; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .gl-icon-sun { display: none; }
  html:not([data-theme="light"]) .gl-icon-moon { display: block; }
}

[data-theme="light"] .gl-icon-sun { display: block; }
[data-theme="light"] .gl-icon-moon { display: none; }

/* ========== Hero ========== */
.gl-hero {
  padding-top: var(--gl-space-2xl);
  padding-bottom: var(--gl-space-2xl);
  background:
    radial-gradient(60rem 32rem at 78% -12%, var(--gl-primary-soft) 0%, transparent 62%),
    var(--gl-bg);
}

.gl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--gl-space-xl);
  align-items: center;
}

.gl-hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.35rem);
  letter-spacing: -0.035em;
}

.gl-hero-lede {
  margin-top: var(--gl-space-md);
  font-size: 1.1rem;
  color: var(--gl-muted);
  max-width: 34rem;
}

.gl-hero-actions {
  margin-top: var(--gl-space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gl-hero-proof {
  margin-top: var(--gl-space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  font-size: 0.88rem;
  color: var(--gl-muted);
}

.gl-hero-proof li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gl-hero-proof svg {
  color: var(--gl-primary);
  flex: none;
}

.gl-hero-art {
  position: relative;
}

.gl-hero-art svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 38px rgba(15, 32, 24, 0.12));
}

/* ========== Client / logo strip (CSS + SVG wordmarks) ========== */
.gl-logos {
  padding: var(--gl-space-lg) 0;
  border-top: 1px solid var(--gl-border);
  border-bottom: 1px solid var(--gl-border);
  background: var(--gl-surface);
}

.gl-logos-label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gl-muted);
  margin-bottom: var(--gl-space-md);
}

.gl-logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--gl-space-md) var(--gl-space-xl);
}

.gl-logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gl-muted);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.gl-logo-chip svg {
  color: var(--gl-border-strong);
  flex: none;
}

/* ========== Services showcase ========== */
.gl-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  gap: var(--gl-space-md);
}

.gl-service-card {
  background: var(--gl-surface);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius-lg);
  padding: var(--gl-space-lg);
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.gl-service-card:hover {
  border-color: var(--gl-border-strong);
  transform: translateY(-3px);
  box-shadow: var(--gl-shadow-lg);
}

.gl-service-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--gl-radius);
  display: grid;
  place-items: center;
  background: var(--gl-primary-soft);
  color: var(--gl-primary-strong);
  margin-bottom: var(--gl-space-md);
}

[data-theme="dark"] .gl-service-icon { color: var(--gl-primary); }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .gl-service-icon { color: var(--gl-primary); }
}

.gl-service-card h3 {
  font-size: 1.16rem;
  margin-bottom: 0.5rem;
}

.gl-service-card > p {
  color: var(--gl-muted);
  font-size: 0.95rem;
}

.gl-service-list {
  /* grow so .gl-service-foot lands on the card's baseline in every column */
  flex: 1;
  margin-top: var(--gl-space-md);
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--gl-muted);
}

.gl-service-list li {
  padding-left: 1.35rem;
  position: relative;
}

.gl-service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gl-primary);
}

.gl-service-foot {
  margin-top: var(--gl-space-md);
  padding-top: var(--gl-space-md);
  border-top: 1px solid var(--gl-border);
  font-size: 0.88rem;
  color: var(--gl-muted);
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gl-service-foot strong {
  color: var(--gl-text);
}

/* ========== Metrics ========== */
.gl-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--gl-space-md);
}

.gl-metric {
  background: var(--gl-surface);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
  padding: var(--gl-space-md);
  text-align: center;
}

.gl-metric-num {
  display: block;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--gl-primary);
  line-height: 1.1;
}

.gl-metric-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.87rem;
  color: var(--gl-muted);
}

/* ========== Process ========== */
.gl-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--gl-space-md);
  counter-reset: gl-step;
}

.gl-step {
  position: relative;
  padding: var(--gl-space-md);
  background: var(--gl-surface);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
}

.gl-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gl-primary);
  color: var(--gl-on-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.gl-step h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.gl-step p {
  font-size: 0.9rem;
  color: var(--gl-muted);
}

/* ========== Team ========== */
.gl-placeholder-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border: 1px dashed var(--gl-border-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--gl-muted);
  background: var(--gl-surface);
  margin-bottom: var(--gl-space-md);
}

.gl-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--gl-space-md);
}

.gl-team-card {
  background: var(--gl-surface);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius-lg);
  padding: var(--gl-space-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gl-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gl-primary-strong);
  background: var(--gl-primary-soft);
  border: 2px dashed var(--gl-border-strong);
  margin-bottom: var(--gl-space-sm);
}

[data-theme="dark"] .gl-avatar { color: var(--gl-primary); }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .gl-avatar { color: var(--gl-primary); }
}

.gl-team-card h3 {
  font-size: 1.05rem;
}

.gl-team-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gl-primary);
  margin-top: 0.2rem;
}

.gl-team-bio {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--gl-muted);
}

.gl-team-tags {
  margin-top: var(--gl-space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.gl-tag {
  font-size: 0.74rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--gl-surface-alt);
  border: 1px solid var(--gl-border);
  color: var(--gl-muted);
}

/* ========== Testimonial carousel ========== */
.gl-carousel {
  position: relative;
  background: var(--gl-surface);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius-lg);
  padding: var(--gl-space-xl) var(--gl-space-lg) var(--gl-space-lg);
  box-shadow: var(--gl-shadow);
  max-width: 52rem;
  margin: 0 auto;
}

.gl-carousel-viewport {
  min-height: 15rem;
  display: grid;
}

.gl-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}

.gl-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.gl-quote-mark {
  color: var(--gl-primary);
  opacity: 0.55;
  margin-bottom: 0.5rem;
}

.gl-slide blockquote p {
  font-family: var(--gl-font-quote);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  line-height: 1.5;
  color: var(--gl-text);
}

.gl-slide figcaption,
.gl-slide blockquote footer {
  margin-top: var(--gl-space-md);
  font-size: 0.9rem;
  color: var(--gl-muted);
}

.gl-slide cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--gl-text);
}

.gl-slide-result {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--gl-primary-soft);
  color: var(--gl-primary-strong);
  font-size: 0.82rem;
  font-weight: 600;
}

[data-theme="dark"] .gl-slide-result { color: var(--gl-primary); }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .gl-slide-result { color: var(--gl-primary); }
}

.gl-carousel-controls {
  margin-top: var(--gl-space-lg);
  padding-top: var(--gl-space-md);
  border-top: 1px solid var(--gl-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gl-space-sm);
}

.gl-carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.gl-dot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
}

.gl-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gl-border-strong);
  transition: background-color 0.2s, transform 0.2s;
}

.gl-dot:hover::before {
  background: var(--gl-muted);
}

.gl-dot[aria-current="true"]::before {
  background: var(--gl-primary);
  transform: scale(1.45);
}

.gl-carousel-arrows {
  display: flex;
  gap: 0.5rem;
}

.gl-carousel-count {
  font-size: 0.85rem;
  color: var(--gl-muted);
  font-variant-numeric: tabular-nums;
}

/* ========== FAQ ========== */
.gl-faq {
  max-width: 46rem;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.gl-faq-item {
  background: var(--gl-surface);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
  padding: 0 var(--gl-space-md);
}

.gl-faq-item summary {
  cursor: pointer;
  padding: var(--gl-space-md) 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gl-space-sm);
}

.gl-faq-item summary::-webkit-details-marker {
  display: none;
}

.gl-faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gl-primary);
  line-height: 1;
  flex: none;
}

.gl-faq-item[open] summary::after {
  content: "\2212";
}

.gl-faq-item > p {
  padding-bottom: var(--gl-space-md);
  color: var(--gl-muted);
  font-size: 0.95rem;
}

/* ========== Page header (interior pages) ========== */
.gl-page-header {
  padding: var(--gl-space-2xl) 0 var(--gl-space-xl);
  background:
    radial-gradient(48rem 24rem at 20% -30%, var(--gl-primary-soft) 0%, transparent 60%),
    var(--gl-bg);
  border-bottom: 1px solid var(--gl-border);
}

.gl-page-header h1 {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
}

.gl-page-header p {
  margin-top: var(--gl-space-sm);
  color: var(--gl-muted);
  max-width: 44rem;
  font-size: 1.05rem;
}

.gl-breadcrumb {
  font-size: 0.85rem;
  color: var(--gl-muted);
  margin-bottom: var(--gl-space-sm);
}

.gl-breadcrumb a {
  color: var(--gl-muted);
}

.gl-breadcrumb a:hover {
  color: var(--gl-primary);
}

/* ========== Detailed service blocks (services page) ========== */
.gl-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gl-space-xl);
  align-items: start;
  padding: var(--gl-space-xl) 0;
  border-bottom: 1px solid var(--gl-border);
}

.gl-detail:last-of-type {
  border-bottom: none;
}

.gl-detail h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.85rem);
  margin-bottom: 0.75rem;
}

.gl-detail > div > p {
  color: var(--gl-muted);
}

.gl-detail-points {
  margin-top: var(--gl-space-md);
  display: grid;
  gap: 0.6rem;
}

.gl-detail-points li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.gl-detail-points svg {
  color: var(--gl-primary);
  flex: none;
  margin-top: 0.25rem;
}

.gl-panel {
  background: var(--gl-surface);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius-lg);
  padding: var(--gl-space-lg);
  box-shadow: var(--gl-shadow);
}

.gl-panel h3 {
  font-size: 1rem;
  margin-bottom: var(--gl-space-sm);
}

.gl-deliverables {
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--gl-muted);
}

.gl-deliverables li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--gl-border);
}

.gl-deliverables li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.gl-deliverables strong {
  color: var(--gl-text);
  font-weight: 600;
  text-align: right;
}

/* ========== Engagement table ========== */
.gl-table-scroll {
  /* See the note in pulse.css: keeps visually-hidden cell text from escaping
     the scroll container and widening the document on narrow screens. */
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
  background: var(--gl-surface);
}

.gl-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 34rem;
  font-size: 0.92rem;
}

.gl-table caption {
  text-align: left;
  padding: var(--gl-space-md);
  color: var(--gl-muted);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--gl-border);
}

.gl-table th,
.gl-table td {
  position: relative;
  padding: 0.85rem var(--gl-space-md);
  text-align: left;
  border-bottom: 1px solid var(--gl-border);
  vertical-align: top;
}

.gl-table thead th {
  background: var(--gl-surface-alt);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.gl-table tbody th {
  font-weight: 600;
  color: var(--gl-text);
}

.gl-table tbody tr:last-child th,
.gl-table tbody tr:last-child td {
  border-bottom: none;
}

.gl-table td {
  color: var(--gl-muted);
}

/* ========== Forms (lead capture) ========== */
.gl-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--gl-space-xl);
  align-items: start;
}

.gl-form-card {
  background: var(--gl-surface);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius-lg);
  padding: var(--gl-space-lg);
  box-shadow: var(--gl-shadow);
}

.gl-form-card > h2 {
  font-size: 1.3rem;
}

.gl-demo-notice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: var(--gl-space-sm) 0 var(--gl-space-lg);
  padding: 0.75rem 0.9rem;
  border-radius: var(--gl-radius-sm);
  background: var(--gl-accent-soft);
  border: 1px solid var(--gl-border);
  color: var(--gl-text);
  font-size: 0.86rem;
}

.gl-demo-notice svg {
  color: var(--gl-accent);
  flex: none;
  margin-top: 0.15rem;
}

.gl-field {
  margin-bottom: var(--gl-space-md);
}

.gl-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.gl-req {
  color: var(--gl-accent);
}

.gl-field input,
.gl-field select,
.gl-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--gl-text);
  background: var(--gl-bg);
  border: 1px solid var(--gl-border-strong);
  border-radius: var(--gl-radius-sm);
  padding: 0.7rem 0.8rem;
}

.gl-field textarea {
  resize: vertical;
  min-height: 7rem;
}

.gl-field input:focus-visible,
.gl-field select:focus-visible,
.gl-field textarea:focus-visible {
  outline: 2px solid var(--gl-primary);
  outline-offset: 1px;
  border-color: var(--gl-primary);
}

.gl-field input::placeholder,
.gl-field textarea::placeholder {
  color: var(--gl-muted);
  opacity: 1;
}

.gl-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gl-space-sm);
}

.gl-hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--gl-muted);
}

.gl-error {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b91c1c;
  min-height: 1.1em;
}

[data-theme="dark"] .gl-error { color: #fca5a5; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .gl-error { color: #fca5a5; }
}

.gl-field input[aria-invalid="true"],
.gl-field select[aria-invalid="true"],
.gl-field textarea[aria-invalid="true"] {
  border-color: #b91c1c;
}

[data-theme="dark"] .gl-field input[aria-invalid="true"],
[data-theme="dark"] .gl-field select[aria-invalid="true"],
[data-theme="dark"] .gl-field textarea[aria-invalid="true"] {
  border-color: #fca5a5;
}

.gl-checkline {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--gl-muted);
  margin-bottom: var(--gl-space-md);
}

.gl-checkline input {
  width: auto;
  margin-top: 0.25rem;
  flex: none;
}

.gl-form-status {
  margin-top: var(--gl-space-sm);
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.4em;
}

.gl-form-status.is-ok {
  color: var(--gl-primary-strong);
}

[data-theme="dark"] .gl-form-status.is-ok { color: var(--gl-primary); }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .gl-form-status.is-ok { color: var(--gl-primary); }
}

.gl-form-status.is-err {
  color: #b91c1c;
}

[data-theme="dark"] .gl-form-status.is-err { color: #fca5a5; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .gl-form-status.is-err { color: #fca5a5; }
}

.gl-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* contact sidebar */
.gl-info-stack {
  display: grid;
  gap: var(--gl-space-md);
}

.gl-info-card {
  background: var(--gl-surface);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
  padding: var(--gl-space-md);
}

.gl-info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.gl-info-card h3 svg {
  color: var(--gl-primary);
  flex: none;
}

.gl-info-card p {
  font-size: 0.92rem;
  color: var(--gl-muted);
}

.gl-info-card address {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--gl-muted);
}

.gl-map {
  position: relative;
  border: 1px dashed var(--gl-border-strong);
  border-radius: var(--gl-radius);
  background:
    repeating-linear-gradient(0deg, transparent 0 34px, var(--gl-border) 34px 35px),
    repeating-linear-gradient(90deg, transparent 0 34px, var(--gl-border) 34px 35px),
    var(--gl-surface-alt);
  min-height: 13rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--gl-space-md);
  color: var(--gl-muted);
  font-size: 0.9rem;
}

/* ========== CTA band ========== */
.gl-cta {
  background: var(--gl-primary-strong);
  color: #ffffff;
  border-radius: var(--gl-radius-lg);
  padding: var(--gl-space-xl);
  text-align: center;
}

[data-theme="dark"] .gl-cta {
  background: var(--gl-surface-alt);
  color: var(--gl-text);
  border: 1px solid var(--gl-border-strong);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .gl-cta {
    background: var(--gl-surface-alt);
    color: var(--gl-text);
    border: 1px solid var(--gl-border-strong);
  }
}

.gl-cta h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

.gl-cta p {
  margin: var(--gl-space-sm) auto var(--gl-space-lg);
  max-width: 36rem;
  color: #e6f2ea;
}

[data-theme="dark"] .gl-cta p { color: var(--gl-muted); }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .gl-cta p { color: var(--gl-muted); }
}

.gl-cta .gl-btn-primary {
  background: #ffffff;
  color: var(--gl-primary-strong);
  border-color: #ffffff;
}

.gl-cta .gl-btn-primary:hover {
  background: #e6f2ea;
  border-color: #e6f2ea;
  color: var(--gl-primary-strong);
}

[data-theme="dark"] .gl-cta .gl-btn-primary,
[data-theme="dark"] .gl-cta .gl-btn-primary:hover {
  background: var(--gl-primary);
  border-color: var(--gl-primary);
  color: #08150d;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .gl-cta .gl-btn-primary,
  html:not([data-theme="light"]) .gl-cta .gl-btn-primary:hover {
    background: var(--gl-primary);
    border-color: var(--gl-primary);
    color: #08150d;
  }
}

/* ========== Footer ========== */
.gl-footer {
  background: var(--gl-surface);
  border-top: 1px solid var(--gl-border);
  padding: var(--gl-space-xl) 0 var(--gl-space-lg);
  margin-top: var(--gl-space-2xl);
}

.gl-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--gl-space-lg);
}

.gl-footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--gl-muted);
  max-width: 22rem;
}

.gl-footer h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gl-muted);
  margin-bottom: 0.7rem;
  font-weight: 600;
}

.gl-footer-links {
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.gl-footer-links a {
  color: var(--gl-muted);
}

.gl-footer-links a:hover {
  color: var(--gl-primary);
}

.gl-footer-bottom {
  margin-top: var(--gl-space-xl);
  padding-top: var(--gl-space-md);
  border-top: 1px solid var(--gl-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem var(--gl-space-md);
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--gl-muted);
}

/* ========== Demo badge ========== */
.demo-badge {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--gl-surface);
  border: 1px solid var(--gl-border-strong);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  box-shadow: var(--gl-shadow);
  z-index: 1000;
}

.demo-badge a {
  color: var(--gl-muted);
}

.demo-badge a:hover {
  color: var(--gl-primary);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .gl-hero-grid,
  .gl-detail,
  .gl-contact-grid {
    grid-template-columns: 1fr;
  }

  .gl-hero-art {
    order: -1;
    max-width: 32rem;
  }

  .gl-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .gl-nav-toggle {
    display: inline-flex;
  }

  .gl-nav {
    flex-wrap: wrap;
  }

  .gl-nav-list {
    display: none;
    order: 10;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid var(--gl-border);
    margin-top: 0.6rem;
  }

  .gl-nav-list.is-open {
    display: flex;
  }

  .gl-nav-list a {
    padding: 0.7rem 0.5rem;
  }

  .gl-nav-cta {
    margin: 0.35rem 0 0;
  }
}

@media (max-width: 620px) {
  :root {
    --gl-space-2xl: 3rem;
    --gl-space-xl: 2rem;
  }

  .gl-wrap {
    padding-left: var(--gl-space-sm);
    padding-right: var(--gl-space-sm);
  }

  .gl-field-row {
    grid-template-columns: 1fr;
  }

  .gl-carousel {
    padding: var(--gl-space-lg) var(--gl-space-md) var(--gl-space-md);
  }

  .gl-carousel-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .gl-carousel-dots,
  .gl-carousel-arrows {
    justify-content: center;
  }

  .gl-carousel-count {
    text-align: center;
  }

  .gl-footer-grid {
    grid-template-columns: 1fr;
  }

  .gl-cta {
    padding: var(--gl-space-lg) var(--gl-space-md);
  }

  .demo-badge {
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }
}

/* ========== Motion preferences ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== Print ========== */
@media print {
  .gl-header,
  .gl-carousel-controls,
  .demo-badge,
  .gl-icon-btn {
    display: none;
  }

  body.greenleaf {
    background: #fff;
    color: #000;
  }

  .gl-slide {
    opacity: 1;
    visibility: visible;
    position: static;
  }
}
