/* ==========================================================================
   Nexora Digital — Landing Page Styles
   Deloitte-inspired palette: black, white, signature green, subtle grays
   ========================================================================== */

:root {
  --color-black: #0a0a0a;
  --color-black-soft: #121212;
  --color-green: #86bc25;
  --color-green-dark: #6a9720;
  --color-green-light: #a4d94a;
  --color-white: #ffffff;
  --color-gray-50: #f7f8f7;
  --color-gray-100: #eef0ec;
  --color-gray-200: #e2e5e0;
  --color-gray-400: #9aa0a6;
  --color-gray-600: #5f6368;
  --color-gray-800: #26292b;
  --color-gray-900: #1a1c1a;

  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 10px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 10, 10, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 10, 10, 0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
  --dark-line: rgba(255, 255, 255, 0.09);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-gray-900);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-black);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--color-gray-600); }

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-green), var(--color-green-light));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn-primary {
  background: var(--color-green);
  color: var(--color-black);
  box-shadow: 0 8px 24px rgba(134, 188, 37, 0.28);
}
.btn-primary:hover {
  background: var(--color-green-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(134, 188, 37, 0.35);
}
.btn-primary:hover svg { transform: translateX(3px); }
.btn-outline {
  background: transparent;
  color: var(--color-black);
  border-color: var(--color-gray-200);
}
.btn-outline:hover {
  border-color: var(--color-black);
  transform: translateY(-2px);
}
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 900;
  background: rgba(10, 10, 10, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.82);
  border-bottom-color: var(--dark-line);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-white);
}
.brand-accent { color: var(--color-green); }
.brand-name-footer { color: var(--color-white); }
.brand-name-footer .brand-accent { color: var(--color-green); }

.main-nav ul { display: flex; gap: 34px; }
.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.68);
  padding: 6px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-green);
  transition: width 0.25s var(--ease);
}
.nav-link:hover { color: var(--color-white); }
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.1s; }
.reveal-delay-2.in-view { transition-delay: 0.2s; }
.reveal-delay-3.in-view { transition-delay: 0.3s; }
.reveal-delay-4.in-view { transition-delay: 0.4s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 96px) 0 90px;
  overflow: hidden;
  background: var(--color-black);
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--dark-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 15%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 15%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -220px; right: -160px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(134,188,37,0.24) 0%, rgba(134,188,37,0) 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green-dark);
  background: rgba(134, 188, 37, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow-light,
.hero .eyebrow {
  background: rgba(134,188,37,0.16);
  color: var(--color-green-light);
  border: 1px solid rgba(134,188,37,0.28);
}
.eyebrow-center { display: block; text-align: center; width: fit-content; margin: 0 auto 18px; }

.hero-title {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--color-white);
}
.text-accent { color: var(--color-green); }
.hero-sub {
  font-size: 1.08rem;
  max-width: 540px;
  margin-bottom: 34px;
  color: rgba(255,255,255,0.6);
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }
.hero .btn-outline {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.28);
}
.hero .btn-outline:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.08);
}

.hero-trust-label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  font-weight: 600;
}
.logo-row { display: flex; flex-wrap: wrap; gap: 28px 32px; }
.logo-row span {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.45);
  font-size: 0.95rem;
  transition: color 0.25s var(--ease);
}
.logo-row span:hover { color: var(--color-white); }

/* ---------- Hero visual (lead-gen form card) ---------- */
.hero-visual { position: relative; }
.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;
}
.lead-form-wrap {
  position: relative;
  max-width: 440px;
  margin-left: auto;
}
.lead-form-card {
  position: relative;
  overflow: hidden;
  background: #14170f;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
  padding: 58px 34px 36px;
  transform: perspective(1200px) rotateY(-4deg) rotateX(1.5deg);
  transition: transform 0.6s var(--ease);
}
.hero-visual:hover .lead-form-card { transform: perspective(1200px) rotateY(-1deg) rotateX(0.3deg); }
.lead-form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(134,188,37,0.22), transparent 60%);
  pointer-events: none;
}
.lead-form-badge {
  position: relative;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-green-light);
  background: rgba(134,188,37,0.16);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.lead-form-card h3 {
  position: relative;
  color: var(--color-white);
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.lead-form-head { position: relative; }
.lead-form-head > p {
  position: relative;
  color: var(--color-gray-400);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.lead-form { position: relative; }
/* .lead-form-card (not ".lead-form", which was only ever a class in the
   original hand-written HTML — CF7's own <form> tag never carries it, so
   scoping to the class here would silently never match). */
.lead-form-card .form-field { margin-bottom: 14px; }
.lead-form input,
.lead-form select,
.lead-form textarea {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
  color: var(--color-white);
  resize: vertical;
}
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: var(--color-gray-600); }
/* Scoped to .lead-form-card (the real, always-present wrapper — see the
   note on .lead-form-card .form-field above re: ".lead-form" never
   matching CF7's own <form> tag). CF7's textarea defaults to rows="10",
   which was stretching the whole hero card much taller than the rest of
   its content needs. A fixed default height keeps the card compact on
   load; resize:vertical (inherited from the generic .form-field rule)
   still lets a visitor drag it taller up to max-height if they want to
   write more. */
.lead-form-card textarea {
  height: 90px;
  max-height: 240px;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 4px rgba(134,188,37,0.18);
}
.lead-form select option { color: var(--color-black); }
.lead-form .form-error { color: #ff8577; }
.lead-form-buttons { display: flex; gap: 12px; }
.lead-form-buttons .btn { flex: 1; padding-left: 14px; padding-right: 14px; }
.lead-form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-gray-400);
  text-align: center;
  margin: 14px 0 0;
}
.lead-form .form-success {
  background: rgba(134,188,37,0.16);
  color: var(--color-green-light);
}

/* ---------- Inline Calendly booking step ---------- */
.lead-form-card.showing-calendar {
  overflow: visible;
  transform: none !important;
}
.calendly-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gray-400);
  margin-bottom: 16px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s var(--ease);
}
.calendly-back:hover { color: var(--color-white); }
.calendly-step-title {
  position: relative;
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.calendly-step-sub {
  color: var(--color-gray-400);
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.calendly-inline-wrap {
  width: 100%;
  height: 600px;
  border-radius: var(--radius-md);
  overflow-y: auto;
  overflow-x: hidden;
  background: #14170f;
  border: 1px solid var(--dark-line);
}
.calendly-inline-wrap .calendly-inline-widget,
.calendly-inline-wrap iframe { width: 100%; min-height: 100%; border-radius: var(--radius-md); }
.calendly-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 600px;
  color: var(--color-gray-400);
  font-size: 0.88rem;
}
.calendly-loading::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--color-green);
  animation: spin 0.8s linear infinite;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  animation: floaty 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 0.85rem; color: var(--color-black); }
.float-card span { font-size: 0.78rem; color: var(--color-gray-400); }
.float-card-1 { top: -22px; left: -30px; animation-delay: 0s; }
.float-card-2 { bottom: -24px; right: -20px; animation-delay: 1.2s; }
.float-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(134,188,37,0.14);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.float-icon-dark {
  background: var(--color-black);
  color: var(--color-green);
  font-weight: 700;
  font-size: 0.82rem;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Sections generic ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--color-gray-50); }
.section-dark { position: relative; overflow: hidden; background: var(--color-black); }
.section-dark h2, .section-dark h3 { color: var(--color-white); }
.section-dark .hero-bg-grid { -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 78%); }
.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section-sub { color: var(--color-gray-600); font-size: 1.03rem; }
.section-sub-light { color: var(--color-gray-400); }

.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Services section background ---------- */
.services-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 6%, rgba(134,188,37,0.14) 0%, rgba(134,188,37,0) 45%),
    radial-gradient(circle at 4% 96%, rgba(134,188,37,0.10) 0%, rgba(134,188,37,0) 42%),
    linear-gradient(180deg, #ffffff 0%, #f5f7f0 100%);
}
.services-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(10,10,10,.055) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 15%, transparent 78%);
  pointer-events: none;
}
.services-section .container { position: relative; z-index: 1; }

/* ---------- Services (full-width static list) ---------- */
.service-list { border-top: 1px solid var(--color-gray-200); }
.service-row { position: relative; border-bottom: 1px solid var(--color-gray-200); }

.row-inner {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1.3fr 1.3fr 64px;
  align-items: center;
  gap: 28px;
  padding: 34px 6px;
}
.row-num { font-size: 0.95rem; font-weight: 700; color: var(--color-gray-400); }

.row-main { display: flex; align-items: center; gap: 16px; }
.row-icon-badge {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(134,188,37,0.12);
  display: flex; align-items: center; justify-content: center;
}
.row-main h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--color-black); margin: 0; }

.row-desc p { font-size: 0.92rem; color: var(--color-gray-600); margin: 0; max-width: 40ch; }

.row-arrow {
  justify-self: end;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gray-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-black);
}

/* ---------- Why Us ---------- */
#why-us { position: relative; overflow: hidden; }
#why-us::before {
  content: '';
  position: absolute;
  top: -160px; left: -140px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(134,188,37,0.10) 0%, rgba(134,188,37,0) 70%);
  pointer-events: none;
}
.why-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.why-list { margin: 30px 0 34px; display: flex; flex-direction: column; gap: 20px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-list strong { display: block; color: var(--color-black); font-size: 1rem; margin-bottom: 2px; }
.why-list span { font-size: 0.92rem; color: var(--color-gray-600); }
.why-check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-green);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  background: var(--color-black);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 46px -20px rgba(0,0,0,0.4);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 26px 56px -18px rgba(0,0,0,0.5); }
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(134,188,37,0.22), transparent 60%);
}
.stat-num, .stat-suffix {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-green);
  position: relative;
}
.stat-card p { color: var(--color-gray-400); font-size: 0.88rem; margin: 6px 0 0; position: relative; }

/* ---------- Process (segmented growth bars) ---------- */
.process-bars {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.7fr;
  gap: 8px;
  align-items: stretch;
}
.process-bar {
  position: relative;
  min-height: 200px;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.35s var(--ease);
}
.process-bar:hover { transform: translateY(-6px); }
.process-bar h3 { font-size: 1rem; margin: 4px 0 8px; }
.process-bar p { font-size: 0.82rem; margin: 0; }
.pb-step { font-size: 0.8rem; font-weight: 800; opacity: 0.75; }

.process-bar.pb1 { background: rgba(134,188,37,0.09); color: var(--color-green-dark); }
.process-bar.pb1 p { color: var(--color-green-dark); opacity: 0.7; }
.process-bar.pb2 { background: rgba(134,188,37,0.2); color: var(--color-green-dark); }
.process-bar.pb2 p { color: var(--color-green-dark); opacity: 0.75; }
.process-bar.pb3 { background: rgba(134,188,37,0.35); color: #4c6e18; }
.process-bar.pb3 p { color: #4c6e18; opacity: 0.8; }
.process-bar.pb4 { background: rgba(134,188,37,0.55); color: var(--color-black); }
.process-bar.pb4 p { color: var(--color-black); opacity: 0.7; }
.process-bar.pb5 {
  background: var(--color-black);
  color: var(--color-white);
  justify-content: space-between;
}
.process-bar.pb5 h3 { font-size: 1.25rem; color: var(--color-white); }
.process-bar.pb5 p { color: rgba(255,255,255,0.55); font-size: 0.86rem; }
.process-bar.pb5 .pb-step { color: var(--color-green); }
.pb-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--color-green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}

/* ---------- Work / Case Studies ---------- */
.work-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.work-media {
  height: 260px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px;
  transition: transform 0.5s var(--ease);
}
.work-card:hover .work-media { transform: scale(1.03); }
.work-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.75) 100%);
  z-index: 0;
}
.work-media-1 { background: linear-gradient(150deg, #0a0a0a, #2c3b0e 55%, #86bc25); }
.work-media-2 { background: linear-gradient(150deg, #0a0a0a, #1a2a1a 55%, #6a9720); }
.work-media-3 { background: linear-gradient(150deg, #0a0a0a, #223311 55%, #a4d94a); }
.work-client {
  position: relative; z-index: 1;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.work-stat { position: relative; z-index: 1; }
.work-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
}
.work-stat span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.work-body { padding: 22px 24px 26px; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-green-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.work-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.work-body p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #000000 0%, #0c1404 38%, #3f5613 66%, #86bc25 100%);
  padding: 96px 0;
  text-align: center;
}
.cta-banner-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--dark-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 25% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 100% at 25% 50%, #000, transparent 75%);
  pointer-events: none;
}
.cta-banner-inner { position: relative; z-index: 1; }
.cta-banner-inner h2 { color: var(--color-white); font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.cta-banner-inner p { color: rgba(255,255,255,0.78); max-width: 520px; margin: 0 auto 30px; }
.cta-banner-buttons { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-banner .cta-outline { color: var(--color-white); border-color: rgba(255,255,255,0.3); }
.cta-banner .cta-outline:hover { border-color: var(--color-white); background: rgba(255,255,255,0.1); }

/* ---------- Testimonials ---------- */
#testimonials { position: relative; overflow: hidden; }
#testimonials::before {
  content: '';
  position: absolute;
  bottom: -180px; right: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(134,188,37,0.08) 0%, rgba(134,188,37,0) 70%);
  pointer-events: none;
}
.testimonial-carousel { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.testimonial-track { position: relative; min-height: 220px; }
.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}
.testimonial-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.stars { color: var(--color-green); letter-spacing: 3px; margin-bottom: 18px; font-size: 1.1rem; }
.testimonial-slide p {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-black);
  line-height: 1.5;
  margin-bottom: 26px;
}
.testimonial-person { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testimonial-person strong { display: block; font-size: 0.95rem; }
.testimonial-person span { font-size: 0.85rem; color: var(--color-gray-400); }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.testimonial-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 34px; }
.carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gray-200);
  background: var(--color-white);
  color: var(--color-black);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.carousel-btn:hover { background: var(--color-green); border-color: var(--color-green); color: var(--color-black); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--color-gray-200);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.carousel-dots button.active { background: var(--color-green); transform: scale(1.2); }

/* ---------- Technologies marquee ---------- */
.tech-marquee {
  overflow: hidden;
  margin-top: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tech-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scrollTech 28s linear infinite;
}
.tech-marquee:hover .tech-track { animation-play-state: paused; }
.tech-badge {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-gray-800);
  white-space: nowrap;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.tech-badge:hover { border-color: var(--color-green); color: var(--color-green-dark); }
@keyframes scrollTech {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}
.faq-item {
  border-bottom: 1px solid var(--color-gray-200);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 22px 0;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-black);
}
.faq-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--color-gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--color-green-dark);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--color-green); color: var(--color-black); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 22px; }
.faq-answer p { font-size: 0.95rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  /* Without this, grid's default align-items:stretch makes the white form
     card match the height of the taller left column (copy + contact info +
     social icons), leaving visible blank space inside the card below the
     Send Message button instead of the card hugging its own content. */
  align-items: start;
}
.contact-info { margin: 30px 0 26px; display: flex; flex-direction: column; gap: 16px; }
.contact-info-item { display: flex; align-items: center; gap: 12px; color: var(--color-gray-400); font-size: 0.95rem; }
.social-row { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-gray-400);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.social-link:hover { background: var(--color-green); border-color: var(--color-green); color: var(--color-black); transform: translateY(-3px); }

.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
/* .form-row's own gap and each .form-field's margin-bottom used to both
   apply between two fields inside the same row — harmless side-by-side on
   desktop (the gap is horizontal there, margin-bottom is vertical), but on
   mobile the row collapses to a single stacked column, where both become
   vertical and stack on top of each other, roughly doubling the gap
   between fields that used to sit side-by-side. Moving the "space before
   the next block" job onto .form-row itself and zeroing the inner fields'
   own margin (below) keeps one consistent gap in both layouts. */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-row .form-field { margin-bottom: 0; }
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--color-gray-800); margin-bottom: 7px; }
.form-field input,
.form-field select,
.form-field textarea {
  /* width:100% is needed explicitly for <select> — unlike <input>/<textarea>,
     it doesn't reliably fill a flex column via align-items:stretch alone in
     every browser, so it was rendering at its own intrinsic content width
     (e.g. ~290px) instead of the field's full width. */
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-black);
  background: var(--color-gray-50);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 4px rgba(134,188,37,0.15);
}
/* iOS Safari (and some other mobile browsers) render <select> with their
   own native intrinsic sizing/chrome that doesn't always respect a plain
   width:100% the way desktop browsers do, making the dropdown render
   visibly narrower than the input fields next to it. Disabling the native
   appearance forces our own width/padding/border to be what's actually
   drawn everywhere — but that also removes the built-in dropdown arrow, so
   a matching custom one is drawn back in via background-image. */
.form-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235f6368' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
/* Same fix, lighter arrow to stay visible on the hero card's dark background. */
.lead-form-card select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.form-error {
  display: none;
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 6px;
}
.form-field.invalid input,
.form-field.invalid textarea { border-color: #c0392b; }
.form-field.invalid .form-error { display: block; }
.form-success {
  display: none;
  text-align: center;
  color: var(--color-green-dark);
  background: rgba(134,188,37,0.12);
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.92rem;
}
.form-success.show { display: block; }
.btn-label { display: inline-flex; align-items: center; gap: 8px; }
.submitting .btn-label::after {
  content: '';
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(10,10,10,0.3);
  border-top-color: var(--color-black);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--color-black); color: var(--color-gray-400); padding-top: 80px; }
.footer-top {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { font-size: 0.9rem; margin: 16px 0 22px; max-width: 280px; }
.footer-col h4 { color: var(--color-white); font-size: 0.95rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.9rem; color: var(--color-gray-400); transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--color-green); }
.footer-newsletter p { font-size: 0.88rem; margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--color-white);
  font-family: inherit;
  font-size: 0.88rem;
}
.newsletter-form input::placeholder { color: var(--color-gray-600); }
.newsletter-form input:focus { outline: none; border-color: var(--color-green); }
.newsletter-form button {
  flex-shrink: 0;
  width: 42px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--color-green);
  color: var(--color-black);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s var(--ease);
}
.newsletter-form button:hover { background: var(--color-green-light); }

.footer-bottom {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 26px 24px;
  font-size: 0.82rem;
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: var(--color-gray-600); transition: color 0.25s var(--ease); }
.footer-legal a:hover { color: var(--color-green); }

.footer-giant {
  position: relative;
  z-index: 1;
  font-size: clamp(3.2rem, 13vw, 9.5rem);
  font-weight: 900;
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.14);
  line-height: 0.8;
  white-space: nowrap;
  text-align: center;
  padding: 6px 0 0;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(134,188,37,0.14), rgba(134,188,37,0));
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-green);
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.25s var(--ease);
  z-index: 500;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-green); color: var(--color-black); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto 20px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-stats { max-width: 480px; }
  .faq-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .process-bars { grid-template-columns: 1fr 1fr 1fr; row-gap: 8px; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column;
    padding: 10px 24px 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--dark-line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav ul li { border-bottom: 1px solid var(--dark-line); }
  .main-nav .nav-link { display: block; padding: 14px 0; }
  .header-actions .btn-sm { display: none; }
  .nav-toggle { display: flex; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .work-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 76px 0; }
  .hero { padding-top: calc(var(--header-h) + 56px); }
  .grid-3 { grid-template-columns: 1fr; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .process-bars { grid-template-columns: 1fr 1fr; }
  .row-inner { grid-template-columns: 1fr auto; grid-template-areas: "num arrow" "main main" "desc desc"; row-gap: 12px; padding: 26px 4px; }
  .row-num { grid-area: num; }
  .row-arrow { grid-area: arrow; }
  .row-main { grid-area: main; }
  .row-desc { grid-area: desc; }
  .row-desc p { max-width: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form { padding: 26px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .float-card { display: none; }
  .cta-banner { padding: 56px 0; }
  .cta-banner-buttons { flex-direction: column; align-items: stretch; }
  .cta-banner-buttons .btn { justify-content: center; }
}


/* ===================== Service page additions ===================== */

  /* ---------- Service-page-only additions (uses the same design tokens as home) ---------- */
  .breadcrumb {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 8px;
    font-size: 0.82rem; color: rgba(255,255,255,0.45);
    margin-bottom: 24px;
  }
  .breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s var(--ease); }
  .breadcrumb a:hover { color: var(--color-green-light); }
  .breadcrumb span.sep { color: rgba(255,255,255,0.25); }
  .breadcrumb span.current { color: var(--color-green-light); font-weight: 600; }

  .service-hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
  .service-hero-inner .breadcrumb { justify-content: center; }
  .service-hero-inner .eyebrow { display: block; width: fit-content; margin: 0 auto 18px; }
  .service-hero-inner .hero-title { max-width: 700px; margin-left: auto; margin-right: auto; }
  .service-hero-inner .hero-sub { max-width: 560px; margin-left: auto; margin-right: auto; }
  .service-hero-inner .hero-cta { justify-content: center; margin-bottom: 56px; }

  /* Scoped to .service-hero-inner (single-service.php's hero wrapper) — a
     second, unscoped ".service-quick-stats" rule further down (for the
     About page's 4-stat version) used to collide with this one since both
     targeted the exact same bare class. Same specificity + later in the
     cascade meant the About page's 4-column grid always won, even here,
     forcing a Service page's 3 real stats into 4 grid columns and leaving
     a phantom empty 4th column that pushed everything visibly off-center. */
  .service-hero-inner .service-quick-stats {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(3, 1fr);
    max-width: 620px; margin: 0 auto;
    border-top: 1px solid var(--dark-line);
    padding-top: 32px;
  }
  .service-quick-stats div { text-align: center; border-right: 1px solid var(--dark-line); }
  .service-quick-stats div:last-child { border-right: none; }
  .service-quick-stats strong {
    display: block; font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 700; color: var(--color-white); margin-bottom: 4px;
  }
  .service-quick-stats span { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

  /* Feature grid ("What's Included") */
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: 30px 26px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  }
  .feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
  .feature-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(134,188,37,0.12);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
  }
  .feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
  .feature-card p { font-size: 0.92rem; margin-bottom: 0; }

  @media (max-width: 900px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .service-hero-inner .service-quick-stats { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 640px) {
    .feature-grid { grid-template-columns: 1fr; }
    .service-hero-inner .service-quick-stats { max-width: 340px; row-gap: 20px; }
    .service-quick-stats div:nth-child(2) { border-right: none; }
  }

  /* ---- Capabilities: dark, multi-column, bullet lists (reusable pattern for other service pages) ---- */
  .capability-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin-top: 12px;
  }
  .capability-col { padding: 0 30px; border-left: 1px solid var(--dark-line); }
  .capability-col:first-child { border-left: none; padding-left: 0; }
  .capability-col:last-child { padding-right: 0; }
  .capability-col h3 { color: var(--color-green-light); font-size: 1.05rem; margin-bottom: 10px; }
  .capability-col > p { color: rgba(255,255,255,0.5); font-size: 0.86rem; margin-bottom: 22px; }
  .capability-list { display: flex; flex-direction: column; gap: 13px; }
  .capability-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: rgba(255,255,255,0.78); }
  .capability-list li::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
    background: var(--color-green); margin-top: 7px; flex-shrink: 0;
  }

  /* ---- Use Cases: tabbed toggle + numbered tile grid (reusable pattern for other service pages) ---- */
  .usecases-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 48px; flex-wrap: wrap; }
  .usecases-tab {
    font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;
    color: var(--color-gray-600);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 999px;
    padding: 11px 26px;
    cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  }
  .usecases-tab:hover { border-color: var(--color-black); }
  .usecases-tab.active { background: var(--color-black); color: var(--color-white); border-color: var(--color-black); }
  .usecases-panel { display: none; grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .usecases-panel.active { display: grid; }
  .usecase-tile {
    border: 1px solid var(--color-gray-200); border-radius: var(--radius-md);
    padding: 30px 28px;
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  }
  .usecase-tile:hover { border-color: var(--color-green); transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .usecase-tile .tile-num {
    display: block; font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.06em; color: var(--color-green-dark); margin-bottom: 16px;
  }
  .usecase-tile h4 { font-size: 1.05rem; margin-bottom: 8px; }
  .usecase-tile p { font-size: 0.9rem; margin-bottom: 0; }

  @media (max-width: 900px) {
    .capability-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .capability-col:nth-child(2n+1) { border-left: none; padding-left: 0; }
    .capability-col:nth-child(-n+2) { padding-top: 0; }
  }
  @media (max-width: 640px) {
    .capability-grid { grid-template-columns: 1fr; row-gap: 36px; }
    .capability-col { border-left: none; padding-left: 0; }
    .usecases-panel.active { grid-template-columns: 1fr; }
    .usecases-tabs { gap: 8px; }
    .usecases-tab { padding: 10px 20px; font-size: 0.86rem; }
  }


/* ===================== About Us page additions ===================== */

  /* ---------- About-page-only additions ---------- */
  .breadcrumb {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 8px;
    font-size: 0.82rem; color: rgba(255,255,255,0.45);
    margin-bottom: 24px;
  }
  .breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s var(--ease); }
  .breadcrumb a:hover { color: var(--color-green-light); }
  .breadcrumb span.sep { color: rgba(255,255,255,0.25); }
  .breadcrumb span.current { color: var(--color-green-light); font-weight: 600; }

  .page-hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; text-align: center; }
  .page-hero-inner .breadcrumb { justify-content: center; }
  .page-hero-inner .eyebrow { display: block; width: fit-content; margin: 0 auto 18px; }
  .page-hero-inner .hero-title { margin-bottom: 18px; }
  .page-hero-inner .hero-sub { max-width: 580px; margin-left: auto; margin-right: auto; margin-bottom: 44px; }

  /* Scoped to .page-hero-inner (page-about.php's hero wrapper) — see the
     matching note on .service-hero-inner .service-quick-stats above; these
     two rules used to be identical bare ".service-quick-stats" selectors
     that collided. */
  .page-hero-inner .service-quick-stats {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(4, 1fr);
    max-width: 780px; margin: 0 auto;
    border-top: 1px solid var(--dark-line);
    padding-top: 32px;
  }
  .service-quick-stats div { text-align: center; border-right: 1px solid var(--dark-line); }
  .service-quick-stats div:last-child { border-right: none; }
  .service-quick-stats strong {
    display: block; font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 700; color: var(--color-white); margin-bottom: 4px;
  }
  .service-quick-stats span { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

  /* Story section */
  .story-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
  .story-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 20px; }
  .story-copy p { margin-bottom: 16px; }
  .story-copy p:last-child { margin-bottom: 0; }
  .story-card {
    background: var(--color-black); border-radius: var(--radius-lg);
    padding: 40px 34px; position: relative; overflow: hidden;
  }
  .story-card::before {
    content: ''; position: absolute; top: -80px; right: -80px; width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(134,188,37,0.28) 0%, rgba(134,188,37,0) 70%);
  }
  .story-card-row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--dark-line); }
  .story-card-row:last-child { border-bottom: none; padding-bottom: 0; }
  .story-card-row:first-child { padding-top: 0; }
  .story-card-row strong { font-family: var(--font-heading); font-size: 1.6rem; color: var(--color-white); }
  .story-card-row span { font-size: 0.86rem; color: rgba(255,255,255,0.55); }

  /* Values grid */
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .value-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: 30px 26px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  }
  .value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
  .value-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(134,188,37,0.12);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
  }
  .value-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
  .value-card p { font-size: 0.92rem; margin-bottom: 0; }

  /* Milestones timeline (vertical) */
  .milestones { max-width: 720px; margin: 0 auto; position: relative; }
  .milestones::before { content: ''; position: absolute; left: 84px; top: 6px; bottom: 6px; width: 2px; background: var(--dark-line); }
  .milestone { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 32px; padding-bottom: 40px; }
  .milestone:last-child { padding-bottom: 0; }
  .milestone-year { font-family: var(--font-heading); font-weight: 700; color: var(--color-green-light); font-size: 1rem; text-align: right; padding-top: 1px; }
  .milestone-body { position: relative; padding-left: 28px; }
  .milestone-body::before {
    content: ''; position: absolute; left: -5px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--color-green); border: 3px solid var(--color-black);
  }
  .milestone-body h4 { color: var(--color-white); font-size: 1.02rem; margin-bottom: 6px; }
  .milestone-body p { color: rgba(255,255,255,0.55); font-size: 0.9rem; margin-bottom: 0; }

  /* Team grid */
  .team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .team-card { text-align: center; }
  .team-avatar {
    width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px;
    background: var(--color-black); color: var(--color-green);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem;
  }
  .team-card h3 { font-size: 1rem; margin-bottom: 2px; }
  .team-card span { display: block; font-size: 0.86rem; color: var(--color-gray-400); }

  @media (max-width: 900px) {
    .page-hero-inner .service-quick-stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
    .story-grid { grid-template-columns: 1fr; gap: 40px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 640px) {
    .feature-grid { grid-template-columns: 1fr; }
    .milestones::before { left: 5px; }
    .milestone { grid-template-columns: 1fr; gap: 6px; }
    .milestone-year { text-align: left; }
    .milestone-body { padding-left: 24px; }
    .milestone-body::before { left: -5px; }
    .team-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
  }


/* ===================== Contact Us page additions ===================== */

  /* ---------- Contact-page-only additions (uses the same design tokens as the rest of the site) ---------- */
  .breadcrumb {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 8px;
    font-size: 0.82rem; color: rgba(255,255,255,0.45);
    margin-bottom: 24px;
  }
  .breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s var(--ease); }
  .breadcrumb a:hover { color: var(--color-green-light); }
  .breadcrumb span.sep { color: rgba(255,255,255,0.25); }
  .breadcrumb span.current { color: var(--color-green-light); font-weight: 600; }

  .page-hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; text-align: center; }
  .page-hero-inner .breadcrumb { justify-content: center; }
  .page-hero-inner .eyebrow { display: block; width: fit-content; margin: 0 auto 18px; }
  .page-hero-inner .hero-title { margin-bottom: 18px; }
  .hero.page-hero { padding-bottom: 70px; }

  .contact-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
  .contact-method {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: 26px 24px;
    text-align: center;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  }
  .contact-method:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
  .contact-method-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(134,188,37,0.12);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
  }
  .contact-method h3 { font-size: 1rem; margin-bottom: 6px; }
  .contact-method p { font-size: 0.9rem; margin-bottom: 0; }
  .contact-method a { color: var(--color-gray-600); }
  .contact-method a:hover { color: var(--color-green-dark); }

  @media (max-width: 760px) {
    .contact-methods { grid-template-columns: 1fr; }
  }


/* ===================== Legal pages additions ===================== */

  /* ---------- Legal-page-only additions (shared pattern for Privacy Policy / Terms) ---------- */
  .breadcrumb {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 8px;
    font-size: 0.82rem; color: rgba(255,255,255,0.45);
    margin-bottom: 24px;
  }
  .breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s var(--ease); }
  .breadcrumb a:hover { color: var(--color-green-light); }
  .breadcrumb span.sep { color: rgba(255,255,255,0.25); }
  .breadcrumb span.current { color: var(--color-green-light); font-weight: 600; }

  .page-hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; text-align: center; }
  .page-hero-inner .breadcrumb { justify-content: center; }
  .page-hero-inner .eyebrow { display: block; width: fit-content; margin: 0 auto 18px; }
  .page-hero-inner .hero-title { margin-bottom: 14px; }
  .legal-updated { font-size: 0.85rem; color: rgba(255,255,255,0.4); }
  .hero.page-hero { padding-bottom: 60px; }

  .legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 64px; align-items: start; }
  .legal-toc { position: sticky; top: calc(var(--header-h) + 32px); }
  .legal-toc h4 {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--color-gray-400); margin-bottom: 16px;
  }
  .legal-toc ul { display: flex; flex-direction: column; gap: 2px; }
  .legal-toc a {
    display: block; padding: 8px 14px; margin-left: -14px; border-radius: 8px;
    font-size: 0.9rem; color: var(--color-gray-600);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
  }
  .legal-toc a:hover { color: var(--color-black); background: var(--color-gray-50); }

  /* WordPress content output doesn't wrap each heading's content in <section>
     tags, so the divider/spacing between numbered clauses is driven off the
     h2 itself rather than a section+section sibling selector. */
  .legal-article h2 {
    scroll-margin-top: calc(var(--header-h) + 24px);
    margin: 46px 0 14px; padding-top: 46px;
    border-top: 1px solid var(--color-gray-200);
  }
  .legal-article > h2:first-child,
  .legal-article > h2.wp-block-heading:first-child {
    margin-top: 0; padding-top: 0; border-top: none;
  }
  .legal-article h2 { font-size: 1.3rem; margin-bottom: 14px; }
  .legal-article p { margin-bottom: 14px; }
  .legal-article ul { margin: 0 0 14px; }
  .legal-article li {
    position: relative; padding-left: 22px; margin-bottom: 8px;
    font-size: 0.98rem; color: var(--color-gray-600);
  }
  .legal-article li::before {
    content: ''; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px;
    border-radius: 50%; background: var(--color-green);
  }
  .legal-article strong { color: var(--color-black); }
  .legal-intro { max-width: 760px; margin-bottom: 8px; }

  @media (max-width: 900px) {
    .legal-layout { grid-template-columns: 1fr; gap: 32px; }
    .legal-toc { position: static; }
    .legal-toc ul { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .legal-toc a { margin-left: 0; padding: 8px 12px; border: 1px solid var(--color-gray-200); }
  }

/* ===================== Contact Form 7 compatibility ===================== */
/* Makes CF7's own generated markup pick up the site's button/field styling
   without editing CF7's form template HTML for every field type. */
.wpcf7 form p { margin-bottom: 18px; }
/* Every field in this theme's CF7 templates is wrapped in our own
   <div class="form-field">, which already carries the correct spacing —
   but CF7 ALSO auto-wraps each field's label+input in its own <p> with the
   rule above, so the two were stacking (double spacing). The .form-field
   wrapper should be the only thing controlling the gap. */
.wpcf7 .form-field p { margin-bottom: 0; }
/* The hero form's labels are screen-reader-only (placeholders carry the
   visible text), but CF7 still auto-inserts a <br> after every label from
   the line break in the form template — invisible label, but the line
   break still reserves a full line of empty vertical space. The main
   Contact form's *visible* labels need their <br> to force the label onto
   its own line above the input, so this only targets the sr-only case. */
.form-field label.sr-only + br { display: none; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="submit"] {
  /* Resets Safari's native button chrome, which can otherwise ignore
     width:100% the same way <select> does (see the note above it). */
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 15px 30px; border: none; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  background: var(--color-green); color: var(--color-black); cursor: pointer;
  box-shadow: 0 8px 24px rgba(134, 188, 37, 0.28);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.wpcf7 input[type="submit"]:hover { background: var(--color-green-dark); color: var(--color-white); transform: translateY(-2px); }
.wpcf7 input[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.wpcf7-spinner { margin-left: 10px; }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 0.82rem; color: #e5484d; }
.wpcf7-response-output {
  margin-top: 16px !important; padding: 12px 16px !important; border-radius: var(--radius-sm);
  border: 1px solid var(--color-gray-200) !important; font-size: 0.9rem;
}
/* CF7 always renders this div, even before the form is ever submitted —
   with no :empty guard its margin/padding/border showed as a permanent
   blank bordered box below every submit button. It only needs to take up
   space once CF7's JS actually puts a real response message inside it. */
.wpcf7-response-output:empty { display: none; }
/* The submit button's own <p> wrapper still carried the same 18px
   margin-bottom as every other field paragraph, adding extra space below
   the button on top of .contact-form's own bottom padding. */
.wpcf7 form p:last-of-type { margin-bottom: 0; position: relative; }
/* The real source of the leftover gap: the submit button is width:100%,
   so CF7's own spinner span — sitting right next to it in the markup —
   has no room left on that line and wraps onto an invisible second line
   of its own. Even with visibility:hidden (not display:none), that
   wrapped line still reserves its full height, which is exactly the ~32px
   gap that showed up below the button. Taking the spinner out of normal
   flow entirely removes that reserved line regardless of visibility. */
.wpcf7 form p:last-of-type .wpcf7-spinner {
  position: absolute;
  top: 50%;
  right: 24px;
  margin: 0;
  transform: translateY(-50%);
}
.wpcf7-mail-sent-ok { border-color: var(--color-green) !important; color: var(--color-green-dark); }
.wpcf7-validation-errors, .wpcf7-acceptance-missing { border-color: #e5484d !important; color: #e5484d; }
/* The hero lead-form card has a dark background, so CF7's labels/response text there need to flip to light. */
.lead-form-card .wpcf7 label { color: rgba(255,255,255,0.85); }
.lead-form-card .wpcf7-response-output { color: rgba(255,255,255,0.85); border-color: var(--dark-line) !important; }
/* Note: .contact-form itself always has a white background (both on the
   homepage's dark section and the standalone Contact Us page) — only the
   surrounding section is dark on the homepage — so its CF7 labels should
   always stay dark, never flipped to white. There used to be a
   ".section-dark .wpcf7 label" rule here that turned them white-on-white
   on both pages; removed rather than re-scoped, since no legitimate case
   needs it (only .lead-form-card, above, is a genuinely dark form background). */

/* Hero lead-form: two-button row. #leadFormButtonsRow is the <p> that the
   Hero Quick Form's own CF7 template wraps its [submit] tag in (see
   README.txt); "Book Now" is a second button spliced in server-side by
   front-page.php. Overrides the generic .wpcf7 input[type="submit"] rule
   above (same specificity, later in the cascade) so "Get Quote" reads as
   an outline button next to the solid-green "Book Now". */
#leadFormButtonsRow {
  display: flex;
  gap: 12px;
  margin-bottom: 0 !important;
}
#leadFormButtonsRow input[type="submit"],
#leadFormButtonsRow #heroBookCallBtn {
  flex: 1;
  width: auto;
  padding-left: 14px;
  padding-right: 14px;
}
#leadFormButtonsRow input[type="submit"] {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.35);
  box-shadow: none;
}
#leadFormButtonsRow input[type="submit"]:hover {
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}
#leadFormButtonsRow #heroBookCallBtn {
  display: inline-flex; align-items: center; justify-content: center;
  padding-top: 15px; padding-bottom: 15px;
  border: none; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  background: var(--color-green); color: var(--color-black); cursor: pointer;
  box-shadow: 0 8px 24px rgba(134,188,37,0.28);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
#leadFormButtonsRow #heroBookCallBtn:hover { background: var(--color-green-dark); color: var(--color-white); transform: translateY(-2px); }
/* CF7 auto-inserts an invisible loading spinner right after the submit
   button (visibility:hidden, but NOT display:none — so even though it's
   invisible, it still sits in this flex row as a real 24px-wide element
   with 10px+24px of margin around it, pushing "Book Now" ~60px further
   right than intended). Take it out of the flex flow entirely here. */
#leadFormButtonsRow .wpcf7-spinner { display: none; }


/* ===================== Services landing page ===================== */

/* The Services archive hero shares .page-hero-inner with the About page,
   whose .service-quick-stats rule (in the "About Us page additions"
   section) is a 4-column grid for its 4 stats. This page only has 3 real
   stats, so without its own scoping it inherited that 4-column grid,
   leaving a phantom empty 4th column that pushed everything off-center —
   the same class of bug already documented and fixed once for
   single-service.php above. The added .services-archive-stats class keeps
   this selector's specificity high enough to win outright, instead of
   depending on source order like the single-service.php fix does. */
.page-hero-inner .service-quick-stats.services-archive-stats {
  grid-template-columns: repeat(3, 1fr);
  max-width: 620px;
}
@media (max-width: 640px) {
  .page-hero-inner .service-quick-stats.services-archive-stats {
    grid-template-columns: 1fr;
    max-width: 280px;
    row-gap: 20px;
  }
  .services-archive-stats div { border-right: none; }
}

.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.service-card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(134,188,37,0.12);
  display: flex; align-items: center; justify-content: center;
}
.service-card-num { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700; color: var(--color-gray-400); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.service-card > p { font-size: 0.92rem; margin-bottom: 18px; }
.service-card-points { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.service-card-points li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.85rem; color: var(--color-gray-600);
}
.service-card-points li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-green); margin-top: 7px; flex-shrink: 0;
}
.service-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;
  color: var(--color-black);
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.service-card-link svg { transition: transform 0.25s var(--ease); }
.service-card:hover .service-card-link { color: var(--color-green-dark); }
.service-card:hover .service-card-link svg { transform: translateX(3px); }

.engagement-teaser-grid { grid-template-columns: repeat(4, 1fr); }
.engagement-teaser-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}
.engagement-teaser-card h4 { font-size: 1rem; margin-bottom: 8px; }
.engagement-teaser-card p { font-size: 0.86rem; margin-bottom: 0; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .engagement-teaser-grid { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .engagement-teaser-grid { grid-template-columns: 1fr; }
}

/* ===================== Blog: shared card + meta ===================== */
.blog-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--color-green-dark);
  background: rgba(134,188,37,0.12);
  padding: 5px 12px;
  border-radius: 999px;
}
.blog-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; color: var(--color-gray-400);
  margin-top: 14px;
}
.blog-meta .blog-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-black); color: var(--color-green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.68rem;
  flex-shrink: 0;
}
.blog-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--color-gray-400); }

/* ---- Filter pills ---- */
.blog-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 52px; }
.blog-filter-pill {
  font-family: var(--font-heading); font-weight: 600; font-size: 0.88rem;
  color: var(--color-gray-600);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 999px;
  padding: 10px 22px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.blog-filter-pill:hover { border-color: var(--color-black); }
.blog-filter-pill.active { background: var(--color-black); color: var(--color-white); border-color: var(--color-black); }

/* ---- Featured post ---- */
.blog-featured {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 64px;
}
.blog-featured-media {
  height: 320px; border-radius: var(--radius-md); overflow: hidden;
  position: relative;
  display: flex; align-items: flex-end; padding: 22px;
}
.blog-featured-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.05) 0%, rgba(10,10,10,0.6) 100%);
}
.blog-featured-media span {
  position: relative; z-index: 1;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.9);
}
.blog-featured-body { padding: 20px 28px 20px 0; }
.blog-featured-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 14px 0 12px; }
.blog-featured-body p { font-size: 1rem; margin-bottom: 0; }

/* ---- Grid of post cards ---- */
.blog-grid { grid-template-columns: repeat(3, 1fr); }
.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card-media {
  height: 190px; position: relative; overflow: hidden;
  display: flex; align-items: flex-start; padding: 18px;
}
.blog-card-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.02) 40%);
}
.blog-card-media .blog-tag { position: relative; z-index: 1; }
.blog-card-body { padding: 22px 22px 26px; }
.blog-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.blog-card-body p { font-size: 0.88rem; margin-bottom: 0; }

/* ---- Pagination ---- */
.blog-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 56px; }
.blog-pagination a, .blog-pagination span {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.88rem;
  border: 1.5px solid var(--color-gray-200); color: var(--color-black);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.blog-pagination a:hover { background: var(--color-green); border-color: var(--color-green); color: var(--color-black); }
.blog-pagination .current { background: var(--color-black); border-color: var(--color-black); color: var(--color-white); }
.blog-pagination .next-prev { width: auto; padding: 0 18px; gap: 6px; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-body { padding: 4px 8px 20px; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ===================== Blog single (internal) post page ===================== */
.blog-hero { text-align: center; }
.blog-hero .blog-tag { margin-bottom: 20px; }
.blog-hero h1 { max-width: 820px; margin-left: auto; margin-right: auto; }
.blog-hero .blog-meta { justify-content: center; margin-top: 22px; }
.blog-hero-media {
  max-width: 980px; margin: 44px auto 0;
  height: 440px; border-radius: var(--radius-lg); overflow: hidden;
}

.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: start; }
.blog-article { max-width: 720px; }
.blog-article > *:first-child { margin-top: 0; }
.blog-article h2 { font-size: 1.5rem; margin: 46px 0 16px; }
.blog-article h2:first-child { margin-top: 0; }
.blog-article h3 { font-size: 1.15rem; margin: 32px 0 12px; }
.blog-article p { font-size: 1.02rem; line-height: 1.75; margin-bottom: 20px; }
.blog-article ul, .blog-article ol { margin: 0 0 20px; padding-left: 22px; }
.blog-article li { font-size: 1.02rem; line-height: 1.7; color: var(--color-gray-600); margin-bottom: 8px; }
.blog-article strong { color: var(--color-black); }
.blog-article blockquote {
  margin: 32px 0; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--color-green);
  font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-black);
  font-weight: 600; line-height: 1.5;
}
.blog-article figure { margin: 32px 0; }
.blog-article figure img { border-radius: var(--radius-md); width: 100%; }
.blog-article figcaption { font-size: 0.84rem; color: var(--color-gray-400); margin-top: 10px; text-align: center; }

.blog-sidebar { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; gap: 28px; }
.blog-toc h4 {
  font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-gray-400);
  margin-bottom: 14px;
}
.blog-toc ul { display: flex; flex-direction: column; gap: 2px; }
.blog-toc a {
  display: block; padding: 7px 0 7px 14px;
  font-size: 0.88rem; color: var(--color-gray-600);
  border-left: 2px solid var(--color-gray-200);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.blog-toc a:hover, .blog-toc a.active { color: var(--color-black); border-color: var(--color-green); }

.share-row-vertical { display: flex; flex-direction: column; gap: 10px; }
.share-row-vertical h4 {
  font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-gray-400);
  margin-bottom: 4px;
}
.share-icons { display: flex; gap: 10px; }

.sidebar-cta-card {
  background: var(--color-black);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  position: relative; overflow: hidden;
}
.sidebar-cta-card::before {
  content: ''; position: absolute; top: -60px; right: -60px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(134,188,37,0.28) 0%, rgba(134,188,37,0) 70%);
}
.sidebar-cta-card h4 { position: relative; color: var(--color-white); font-size: 1rem; margin-bottom: 8px; }
.sidebar-cta-card p { position: relative; color: rgba(255,255,255,0.6); font-size: 0.86rem; margin-bottom: 18px; }
.sidebar-cta-card .btn { position: relative; width: 100%; }

.author-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  padding: 26px;
  margin: 56px 0 0;
}
.author-card .blog-avatar { width: 58px; height: 58px; font-size: 1.1rem; }
.author-card h4 { font-size: 1rem; margin-bottom: 4px; }
.author-card p { font-size: 0.88rem; margin-bottom: 0; }

.related-heading { text-align: center; margin-bottom: 40px; }

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; gap: 40px; }
  .blog-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .blog-toc { flex: 1 1 100%; }
  .blog-hero-media { height: 280px; }
}


