/* ============================================================
   GREEN LABEL SERVICES — HOME PAGE STYLESHEET
   home.css
   ============================================================ */


/* ─── SECTION SHARED PATTERNS ──────────────────────────────── */

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section--light {
  background: #f5f7f5;
}

.section--dark {
  background: var(--color-dark);
}

.section--green-tint {
  background: var(--color-primary-light);
}

.section__header {
  text-align:    center;
  max-width:     640px;
  margin:        0 auto clamp(2.5rem, 5vw, 4rem);
}

.section__header--left {
  text-align:  left;
  margin-left: 0;
}

.section-eyebrow {
  display:        inline-flex;
  align-items:    center;
  gap:            0.625rem;
  font-size:      0.7rem;
  font-weight:    700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color:          var(--color-primary);
  margin-bottom:  0.875rem;
}

.section-eyebrow--dim {
  color: rgba(255, 255, 255, 0.45);
}

.eyebrow-line {
  display:      block;
  width:        28px;
  height:       2px;
  background:   var(--color-primary);
  border-radius: 1px;
  flex-shrink:  0;
}

.eyebrow-line--dim { background: rgba(255, 255, 255, 0.3); }

.section__heading {
  font-size:   clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 800;
  line-height: 1.18;
  color:       var(--color-text);
  margin-bottom: 1rem;
}

.section__heading--light { color: var(--color-white); }

.section__subtext {
  font-size:   1.0625rem;
  line-height: 1.75;
  color:       var(--color-text-muted);
  font-weight: 400;
}

.section__subtext--light { color: rgba(255, 255, 255, 0.58); }

.section__cta {
  margin-top:  2.5rem;
  text-align:  center;
}


/* ─── HERO SLIDER ───────────────────────────────────────────── */

.hero {
  position:   relative;
  width:      100%;
  height:     100svh;
  min-height: 580px;
  max-height: 960px;
  overflow:   hidden;
  outline:    none;
}

/* Individual slide */
.hero__slide {
  position:   absolute;
  inset:      0;
  opacity:    0;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* Background image with subtle Ken Burns zoom */
.hero__bg {
  position:            absolute;
  inset:               0;
  background-size:     cover;
  background-position: center;
  transform:           scale(1.06);
  transition:          transform 7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change:         transform;
}

.hero__slide.is-active .hero__bg {
  transform: scale(1);
}

/* Directional gradient overlay — dark left, fade right */
.hero__overlay {
  position:   absolute;
  inset:      0;
  background: linear-gradient(
    100deg,
    rgba(5, 10, 5, 0.82) 0%,
    rgba(5, 10, 5, 0.55) 45%,
    rgba(5, 10, 5, 0.25) 75%,
    rgba(5, 10, 5, 0.15) 100%
  );
}

/* Bottom fade for nav dots legibility */
.hero__overlay::after {
  content:    '';
  position:   absolute;
  bottom:     0;
  left:       0;
  right:      0;
  height:     200px;
  background: linear-gradient(to top, rgba(5, 10, 5, 0.5), transparent);
}

/* Slide content wrapper */
.hero__content {
  position:        relative;
  z-index:         2;
  height:          100%;
  display:         flex;
  flex-direction:  column;
  justify-content: center;
  padding:         0 var(--container-pad);
  padding-top:     var(--nav-height);
  max-width:       var(--container-max);
  margin:          0 auto;
}

/* Text animation helpers — reset state */
.hero__eyebrow,
.hero__heading,
.hero__subtext,
.hero__actions {
  opacity:    0;
  transform:  translateY(28px);
  transition: opacity 0.01s, transform 0.01s;
}

/* Staggered animate-in on active slide */
.hero__slide.is-active .hero__eyebrow {
  opacity:    1;
  transform:  translateY(0);
  transition: opacity 0.75s ease 0.45s, transform 0.75s cubic-bezier(0.2, 0, 0.2, 1) 0.45s;
}

.hero__slide.is-active .hero__heading {
  opacity:    1;
  transform:  translateY(0);
  transition: opacity 0.75s ease 0.62s, transform 0.75s cubic-bezier(0.2, 0, 0.2, 1) 0.62s;
}

.hero__slide.is-active .hero__subtext {
  opacity:    1;
  transform:  translateY(0);
  transition: opacity 0.75s ease 0.78s, transform 0.75s cubic-bezier(0.2, 0, 0.2, 1) 0.78s;
}

.hero__slide.is-active .hero__actions {
  opacity:    1;
  transform:  translateY(0);
  transition: opacity 0.75s ease 0.95s, transform 0.75s cubic-bezier(0.2, 0, 0.2, 1) 0.95s;
}

/* Text elements */
.hero__eyebrow {
  display:        inline-flex;
  align-items:    center;
  gap:            0.625rem;
  font-size:      0.75rem;
  font-weight:    700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color:          var(--color-primary);
  margin-bottom:  1.125rem;
}

.hero__eyebrow-dot {
  display:       block;
  width:         6px;
  height:        6px;
  background:    var(--color-primary);
  border-radius: 50%;
  flex-shrink:   0;
}

.hero__heading {
  font-size:     clamp(2.125rem, 5.5vw, 4rem);
  font-weight:   800;
  line-height:   1.1;
  color:         var(--color-white);
  max-width:     16ch;
  margin-bottom: 1.25rem;
  text-shadow:   0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__subtext {
  font-size:     clamp(1rem, 1.8vw, 1.175rem);
  font-weight:   400;
  line-height:   1.7;
  color:         rgba(255, 255, 255, 0.82);
  max-width:     46ch;
  margin-bottom: 0;
}

.hero__actions {
  display:     flex;
  align-items: center;
  gap:         1rem;
  margin-top:  2.25rem;
  flex-wrap:   wrap;
}

/* Ghost / outline button variant for hero */
.btn-ghost {
  display:        inline-flex;
  align-items:    center;
  justify-content: center;
  gap:            0.5rem;
  padding:        0.75rem 1.75rem;
  font-family:    var(--font);
  font-weight:    700;
  font-size:      0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color:          var(--color-white);
  border:         2px solid rgba(255, 255, 255, 0.55);
  border-radius:  var(--radius-sm);
  transition:     border-color var(--ease), background var(--ease), color var(--ease), transform var(--ease);
  min-height:     48px;
  white-space:    nowrap;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--color-white);
  background:   rgba(255, 255, 255, 0.12);
  transform:    translateY(-2px);
}

/* ── Slider navigation controls ── */
.hero__controls {
  position:   absolute;
  bottom:     2.5rem;
  left:       0;
  right:      0;
  z-index:    3;
  display:    flex;
  align-items: center;
  justify-content: center;
  gap:        1.5rem;
  padding:    0 var(--container-pad);
}

/* Arrow buttons */
.hero__arrow {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           44px;
  height:          44px;
  border:          1px solid rgba(255, 255, 255, 0.35);
  border-radius:   50%;
  color:           rgba(255, 255, 255, 0.8);
  background:      rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  transition:      background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
  flex-shrink:     0;
}

.hero__arrow:hover,
.hero__arrow:focus-visible {
  background:    var(--color-primary);
  border-color:  var(--color-primary);
  color:         var(--color-white);
  transform:     scale(1.08);
}

.hero__arrow svg {
  width:  18px;
  height: 18px;
  stroke: currentColor;
  fill:   none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dot indicators */
.hero__dots {
  display: flex;
  gap:     0.5rem;
}

.hero__dot {
  width:         8px;
  height:        8px;
  border-radius: 50%;
  background:    rgba(255, 255, 255, 0.35);
  border:        none;
  cursor:        pointer;
  transition:    background var(--ease), transform var(--ease), width var(--ease);
  padding:       0;
  min-width:     8px;
}

.hero__dot.is-active {
  background:   var(--color-primary);
  width:        24px;
  border-radius: 4px;
}

/* Live region (screen readers) */
.hero__live {
  position: absolute;
  clip:     rect(0, 0, 0, 0);
  width:    1px;
  height:   1px;
  overflow: hidden;
}

/* Scroll cue */
.hero__scroll-cue {
  position: absolute;
  bottom:   2.5rem;
  right:    var(--container-pad);
  z-index:  3;
  display:  flex;
  flex-direction: column;
  align-items:    center;
  gap:      0.5rem;
  color:    rgba(255, 255, 255, 0.45);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero__scroll-line {
  width:           1px;
  height:          48px;
  background:      linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation:       scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1);   }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ── Blog hero slide background ── */
.hero__bg--blog {
  background:
    radial-gradient(ellipse at 22% 55%, rgba(0, 128, 0, 0.11) 0%, transparent 52%),
    radial-gradient(ellipse at 75% 25%, rgba(0, 128, 0, 0.06) 0%, transparent 45%),
    #050e05;
}

/* Uniform dark overlay for the blog slide (content on both sides) */
.hero__overlay--blog {
  background: rgba(3, 8, 3, 0.55);
}

/* ── Blog slide two-column layout ── */
.hero__content--split {
  flex-direction: row;
  align-items:    center;
  gap:            clamp(2rem, 5vw, 4rem);
}

.hero__col--text {
  flex:      0 0 42%;
  max-width: 42%;
  display:        flex;
  flex-direction: column;
}

/* Cards column — animate in from the right */
.hero__col--cards {
  flex:             1;
  display:          flex;
  flex-direction:   column;
  gap:              0.875rem;
  opacity:          0;
  transform:        translateX(36px);
  transition:       opacity 0.01s, transform 0.01s;
}

.hero__slide.is-active .hero__col--cards {
  opacity:    1;
  transform:  translateX(0);
  transition: opacity 0.8s ease 0.85s,
              transform 0.8s cubic-bezier(0.2, 0, 0.2, 1) 0.85s;
}

/* ── Hero blog post cards ── */
.hero-post-card {
  display:              flex;
  align-items:          flex-start;
  gap:                  1rem;
  background:           rgba(255, 255, 255, 0.06);
  backdrop-filter:      blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border:               1px solid rgba(255, 255, 255, 0.1);
  border-left:          3px solid var(--color-primary);
  border-radius:        0.875rem;
  padding:              1.25rem 1.375rem 1.25rem 1.125rem;
  text-decoration:      none;
  color:                inherit;
  transition:           background 0.3s ease,
                        border-color 0.3s ease,
                        transform 0.3s cubic-bezier(0.2, 0, 0.2, 1),
                        box-shadow 0.3s ease;
}

.hero-post-card:hover,
.hero-post-card:focus-visible {
  background:    rgba(255, 255, 255, 0.1);
  border-color:  rgba(0, 128, 0, 0.35);
  border-left-color: var(--color-primary);
  transform:     translateX(5px);
  box-shadow:    0 8px 32px rgba(0, 0, 0, 0.25);
  outline:       none;
}

/* Thumbnail */
.hero-post-card__thumb {
  flex-shrink:   0;
  width:         76px;
  height:        76px;
  border-radius: 0.625rem;
  overflow:      hidden;
  background:    rgba(0, 128, 0, 0.08);
  border:        1px solid rgba(0, 128, 0, 0.14);
}

.hero-post-card__thumb--fallback {
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           rgba(0, 128, 0, 0.45);
  font-size:       1.625rem;
}

.hero-post-card__thumb-img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-post-card:hover .hero-post-card__thumb-img {
  transform: scale(1.07);
}

/* Card body */
.hero-post-card__body {
  flex:           1;
  min-width:      0;
  display:        flex;
  flex-direction: column;
  gap:            0.3rem;
}

/* Meta row: category + reading time */
.hero-post-card__meta {
  display:     flex;
  align-items: center;
  gap:         0.625rem;
  flex-wrap:   wrap;
}

.hero-post-card__cat {
  font-size:      0.63rem;
  font-weight:    700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--color-primary);
  background:     rgba(0, 128, 0, 0.12);
  border:         1px solid rgba(0, 128, 0, 0.22);
  padding:        0.2rem 0.6rem;
  border-radius:  100px;
  white-space:    nowrap;
  flex-shrink:    0;
}

.hero-post-card__time {
  font-size:   0.7rem;
  color:       rgba(255, 255, 255, 0.42);
  font-weight: 500;
  display:     flex;
  align-items: center;
  gap:         0.3rem;
  white-space: nowrap;
}

/* Title */
.hero-post-card__title {
  font-size:              0.9375rem;
  font-weight:            700;
  color:                  var(--color-white);
  line-height:            1.38;
  display:                -webkit-box;
  -webkit-line-clamp:     2;
  -webkit-box-orient:     vertical;
  overflow:               hidden;
  margin:                 0.125rem 0 0;
  transition:             color 0.25s ease;
}

.hero-post-card:hover .hero-post-card__title {
  color: rgba(255, 255, 255, 0.95);
}

/* Excerpt */
.hero-post-card__excerpt {
  font-size:          0.8rem;
  line-height:        1.62;
  color:              rgba(255, 255, 255, 0.5);
  display:            -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:           hidden;
  margin:             0;
}

/* Read link */
.hero-post-card__cta {
  display:        inline-flex;
  align-items:    center;
  gap:            0.3rem;
  font-size:      0.72rem;
  font-weight:    700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color:          var(--color-primary);
  margin-top:     0.25rem;
  transition:     gap 0.25s ease;
}

.hero-post-card:hover .hero-post-card__cta {
  gap: 0.55rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line { animation: none; }
  .hero__bg          { transition: none; transform: none; }
}


/* ─── STATS BAR ────────────────────────────────────────────── */

.stats-bar {
  background:  var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding:     0;
  position:    relative;
  z-index:     2;
}

.stats-bar__grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  max-width:             var(--container-max);
  margin:                0 auto;
}

.stats-bar__item {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  padding:         2.25rem 1rem;
  text-align:      center;
  position:        relative;
}

.stats-bar__item + .stats-bar__item::before {
  content:    '';
  position:   absolute;
  left:       0;
  top:        20%;
  bottom:     20%;
  width:      1px;
  background: var(--color-border);
}

.stats-bar__value {
  font-size:   clamp(2rem, 4vw, 2.875rem);
  font-weight: 800;
  color:       var(--color-primary);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stats-bar__label {
  font-size:      0.8rem;
  font-weight:    600;
  letter-spacing: 0.04em;
  color:          var(--color-text-muted);
  text-transform: uppercase;
}


/* ─── SERVICES SECTION ─────────────────────────────────────── */

.services-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   2rem;
  max-width:             var(--container-max);
  margin:                0 auto;
  padding:               0 var(--container-pad);
  counter-reset:         service-count;
}

.service-card {
  background:       linear-gradient(160deg, #ffffff 0%, #f8fdf8 100%);
  border:           1px solid rgba(0, 128, 0, 0.12);
  border-radius:    1rem;
  padding:          2.75rem 2.25rem 2.25rem;
  position:         relative;
  overflow:         hidden;
  transition:       transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  display:          flex;
  flex-direction:   column;
  box-shadow:       0 2px 4px rgba(0,0,0,0.04), 0 6px 16px rgba(0,0,0,0.05);
  counter-increment: service-count;
}

/* Left accent bar */
.service-card::before {
  content:          '';
  position:         absolute;
  left:             0;
  top:              1.5rem;
  bottom:           1.5rem;
  width:            3px;
  background:       linear-gradient(to bottom, var(--color-primary), rgba(0, 128, 0, 0.3));
  border-radius:    0 2px 2px 0;
  transform:        scaleY(0);
  transform-origin: top;
  transition:       transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ghost ordinal number */
.service-card::after {
  content:        counter(service-count);
  position:       absolute;
  top:            0.25rem;
  right:          1.25rem;
  font-size:      6rem;
  font-weight:    800;
  line-height:    1;
  color:          rgba(0, 128, 0, 0.06);
  pointer-events: none;
  user-select:    none;
  transition:     color 0.35s ease;
}

.service-card:hover {
  transform:    translateY(-10px);
  box-shadow:
    0 4px 6px  rgba(0,0,0,0.04),
    0 16px 48px rgba(0,0,0,0.11),
    0 0 0 1px  rgba(0,128,0,0.2);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card:hover::after {
  color: rgba(0, 128, 0, 0.1);
}

.service-card__icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           60px;
  height:          60px;
  background:      linear-gradient(135deg, rgba(0,128,0,0.12), rgba(0,128,0,0.06));
  border:          1.5px solid rgba(0, 128, 0, 0.18);
  border-radius:   50%;
  margin-bottom:   1.375rem;
  flex-shrink:     0;
  transition:      background var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.service-card:hover .service-card__icon {
  background:  linear-gradient(135deg, #008000, #006600);
  box-shadow:  0 4px 16px rgba(0, 128, 0, 0.35);
  border-color: transparent;
}

.service-card__icon svg {
  width:  26px;
  height: 26px;
  fill:   var(--color-primary);
  transition: fill var(--ease);
}

.service-card:hover .service-card__icon svg {
  fill: var(--color-white);
}

.service-card__icon i {
  font-size:  1.375rem;
  color:      var(--color-primary);
  transition: color var(--ease);
}

.service-card:hover .service-card__icon i {
  color: var(--color-white);
}

.service-card__title {
  font-size:      1.125rem;
  font-weight:    700;
  color:          var(--color-text);
  margin-bottom:  0.75rem;
  line-height:    1.3;
  letter-spacing: -0.01em;
}

.service-card__text {
  font-size:   0.9rem;
  line-height: 1.7;
  color:       var(--color-text-muted);
  flex-grow:   1;
  margin-bottom: 1.25rem;
}

.service-card__link {
  display:        inline-flex;
  align-items:    center;
  gap:            0.375rem;
  font-size:      0.8rem;
  font-weight:    700;
  color:          var(--color-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top:     auto;
  position:       relative;
  transition:     gap var(--ease);
}

/* Animated underline */
.service-card__link::after {
  content:    '';
  position:   absolute;
  bottom:     -2px;
  left:       0;
  width:      0;
  height:     1.5px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.service-card:hover .service-card__link::after {
  width: 100%;
}

.service-card__link svg {
  width:      16px;
  height:     16px;
  fill:       none;
  stroke:     currentColor;
  stroke-width: 2.5;
  stroke-linecap:  round;
  stroke-linejoin: round;
  transition: transform var(--ease);
}

.service-card:hover .service-card__link svg,
.service-card__link:hover svg {
  transform: translateX(4px);
}

.service-card__link i {
  font-size:  0.75rem;
  transition: transform var(--ease);
}

.service-card:hover .service-card__link i,
.service-card__link:hover i {
  transform: translateX(4px);
}


/* ─── ABOUT SECTION ─────────────────────────────────────────── */

.about-inner {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   clamp(3rem, 6vw, 6rem);
  align-items:           center;
  max-width:             var(--container-max);
  margin:                0 auto;
  padding:               0 var(--container-pad);
}

.about-content {
  display:        flex;
  flex-direction: column;
}

.about-body {
  font-size:   1.0625rem;
  line-height: 1.8;
  color:       var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.about-checklist {
  display:        flex;
  flex-direction: column;
  gap:            0.75rem;
  margin-bottom:  2rem;
}

.about-checklist__item {
  display:     flex;
  align-items: flex-start;
  gap:         0.75rem;
  font-size:   0.9375rem;
  font-weight: 500;
  color:       var(--color-text);
  line-height: 1.5;
}

.about-checklist__tick {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           22px;
  height:          22px;
  background:      var(--color-primary);
  border-radius:   50%;
  flex-shrink:     0;
  margin-top:      1px;
}

.about-checklist__tick svg {
  width:  12px;
  height: 12px;
  stroke: var(--color-white);
  fill:   none;
  stroke-width:    2.5;
  stroke-linecap:  round;
  stroke-linejoin: round;
}

/* Image panel */
.about-image-wrap {
  position:      relative;
  border-radius: var(--radius-lg);
  overflow:      hidden;
}

.about-image-wrap::before {
  content:  '';
  position: absolute;
  top:      -16px;
  right:    -16px;
  width:    80%;
  height:   80%;
  border:   3px solid var(--color-primary);
  border-radius: var(--radius-lg);
  z-index:  0;
  opacity:  0.35;
}

.about-image {
  position:      relative;
  z-index:       1;
  width:         100%;
  aspect-ratio:  4 / 3;
  object-fit:    cover;
  border-radius: var(--radius-lg);
  display:       block;
}

/* Experience badge */
.about-badge {
  position:        absolute;
  bottom:          -1.25rem;
  left:            -1.25rem;
  z-index:         2;
  background:      var(--color-white);
  border-radius:   var(--radius-md);
  padding:         1rem 1.25rem;
  box-shadow:      var(--shadow-md);
  display:         flex;
  align-items:     center;
  gap:             0.875rem;
  min-width:       180px;
}

.about-badge__value {
  font-size:   2rem;
  font-weight: 800;
  color:       var(--color-primary);
  line-height: 1;
}

.about-badge__label {
  font-size:   0.8rem;
  font-weight: 600;
  color:       var(--color-text-muted);
  line-height: 1.3;
  max-width:   8ch;
}


/* ─── INDUSTRIES SECTION ────────────────────────────────────── */

.industries-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1px;
  max-width:             var(--container-max);
  margin:                0 auto;
  padding:               0 var(--container-pad);
  background:            rgba(255, 255, 255, 0.07);
  border:                1px solid rgba(255, 255, 255, 0.07);
  border-radius:         var(--radius-md);
  overflow:              hidden;
}

.industry-card {
  display:         flex;
  flex-direction:  column;
  align-items:     flex-start;
  padding:         2rem 1.75rem;
  background:      var(--color-dark-2);
  gap:             1rem;
  transition:      background var(--ease);
  position:        relative;
  overflow:        hidden;
}

.industry-card::after {
  content:    '';
  position:   absolute;
  bottom:     0;
  left:       1.75rem;
  right:      1.75rem;
  height:     1px;
  background: rgba(255, 255, 255, 0.06);
}

.industry-card:hover {
  background: var(--color-dark-3);
}

.industry-card__icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           48px;
  height:          48px;
  background:      rgba(0, 128, 0, 0.12);
  border-radius:   var(--radius-md);
  flex-shrink:     0;
  transition:      background var(--ease);
}

.industry-card:hover .industry-card__icon {
  background: rgba(0, 128, 0, 0.22);
}

.industry-card__icon svg {
  width:  24px;
  height: 24px;
  fill:   var(--color-primary);
}

.industry-card__name {
  font-size:   1rem;
  font-weight: 700;
  color:       var(--color-white);
  line-height: 1.3;
}

.industry-card__desc {
  font-size:   0.85rem;
  line-height: 1.65;
  color:       rgba(255, 255, 255, 0.5);
  margin-top:  -0.25rem;
}


/* ─── WHY CHOOSE US ─────────────────────────────────────────── */

.features-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   2rem;
  max-width:             var(--container-max);
  margin:                0 auto;
  padding:               0 var(--container-pad);
}

.feature-card {
  display:        flex;
  flex-direction: column;
  gap:            1rem;
}

.feature-card__icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           56px;
  height:          56px;
  border-radius:   var(--radius-md);
  background:      var(--color-white);
  box-shadow:      var(--shadow-sm);
  flex-shrink:     0;
}

.feature-card__icon svg {
  width:  28px;
  height: 28px;
  fill:   var(--color-primary);
}

.feature-card__title {
  font-size:   1rem;
  font-weight: 700;
  color:       var(--color-text);
  line-height: 1.3;
}

.feature-card__text {
  font-size:   0.9rem;
  line-height: 1.7;
  color:       var(--color-text-muted);
  margin-top:  -0.25rem;
}


/* ─── GALLERY SECTION ───────────────────────────────────────── */

.gallery-grid {
  display:               grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows:    repeat(2, 260px);
  gap:                   0.75rem;
  max-width:             var(--container-max);
  margin:                0 auto;
  padding:               0 var(--container-pad);
}

.gallery-item {
  overflow:      hidden;
  border-radius: var(--radius-md);
  position:      relative;
  background:    #111;
}

.gallery-item:nth-child(1) { grid-column: 1 / 5;  grid-row: 1 / 3; }
.gallery-item:nth-child(2) { grid-column: 5 / 8;  grid-row: 1 / 2; }
.gallery-item:nth-child(3) { grid-column: 8 / 13; grid-row: 1 / 2; }
.gallery-item:nth-child(4) { grid-column: 5 / 9;  grid-row: 2 / 3; }
.gallery-item:nth-child(5) { grid-column: 9 / 13; grid-row: 2 / 3; }

.gallery-item__img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-item__img {
  transform: scale(1.05);
}

.gallery-item__overlay {
  position:        absolute;
  inset:           0;
  background:      rgba(5, 10, 5, 0.45);
  opacity:         0;
  transition:      opacity var(--ease);
  display:         flex;
  align-items:     center;
  justify-content: center;
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__view {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           48px;
  height:          48px;
  background:      var(--color-white);
  border-radius:   50%;
  transform:       scale(0.8);
  transition:      transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover .gallery-item__view {
  transform: scale(1);
}

.gallery-item__view svg {
  width:  20px;
  height: 20px;
  stroke: var(--color-primary);
  fill:   none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-section__footer {
  text-align: center;
  margin-top: 2.5rem;
}

.gallery-empty {
  grid-column: 1 / -1;
  display:     flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap:         0.75rem;
  padding:     3rem 1rem;
  color:       var(--color-text-muted);
  font-size:   0.95rem;
}

.gallery-empty i {
  font-size:   2.5rem;
  opacity:     0.35;
}


/* ─── TESTIMONIALS ──────────────────────────────────────────── */

.testimonials-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1.5rem;
  max-width:             var(--container-max);
  margin:                0 auto;
  padding:               0 var(--container-pad);
}

.testimonial-card {
  background:    var(--color-white);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding:       2rem;
  display:       flex;
  flex-direction: column;
  gap:           1.25rem;
  position:      relative;
  transition:    box-shadow var(--ease), transform var(--ease);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform:  translateY(-4px);
}

.testimonial-card__quote-mark {
  position:    absolute;
  top:         1.25rem;
  right:       1.5rem;
  font-size:   4rem;
  line-height: 1;
  font-weight: 800;
  color:       var(--color-primary-light);
  font-family: Georgia, serif;
  user-select: none;
  pointer-events: none;
}

.testimonial-card__stars {
  display: flex;
  gap:     3px;
}

.testimonial-card__star {
  width:  16px;
  height: 16px;
  fill:   var(--color-accent);
}

.testimonial-card__text {
  font-size:   0.9375rem;
  line-height: 1.8;
  color:       var(--color-text-muted);
  font-weight: 400;
  flex-grow:   1;
}

.testimonial-card__author {
  display:     flex;
  align-items: center;
  gap:         0.875rem;
  margin-top:  auto;
}

.testimonial-card__avatar {
  width:         44px;
  height:        44px;
  border-radius: 50%;
  background:    var(--color-primary-light);
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-weight:   700;
  font-size:     1rem;
  color:         var(--color-primary-dark);
  flex-shrink:   0;
}

.testimonial-card__name {
  font-weight:   700;
  font-size:     0.9rem;
  color:         var(--color-text);
  margin-bottom: 0.125rem;
}

.testimonial-card__role {
  font-size:   0.8rem;
  color:       var(--color-text-muted);
  font-weight: 500;
}

/* Card header row: stars + Google icon */
.testimonial-card__header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
}

/* Google brand icon in each card */
.testimonial-card__google-icon {
  font-size:  1.1rem;
  color:      #4285F4;
  flex-shrink: 0;
}

/* Author pushed to bottom when there's no review text */
.testimonial-card__author--solo {
  margin-top: auto;
}

/* Rating summary row under section heading */
.reviews-summary {
  display:     flex;
  align-items: center;
  gap:         0.625rem;
  justify-content: center;
  margin-top:  0.75rem;
}

.reviews-summary__score {
  font-size:   1.75rem;
  font-weight: 800;
  color:       var(--color-text);
  line-height: 1;
}

.reviews-summary__stars {
  display: flex;
  gap:     2px;
}

.reviews-summary__count {
  font-size:   0.85rem;
  font-weight: 500;
  color:       var(--color-text-muted);
}

/* ─── Local Guide icon in role line */
.testimonial-card__role .fa-location-dot {
  color:      #4285F4;
  font-size:  0.7rem;
  margin-right: 0.125rem;
}


/* ─── REVIEWS CAROUSEL (mobile only) ───────────────────────── */

/* Hide arrows/dots on desktop */
.reviews-carousel__arrow,
.reviews-carousel__dots { display: none; }

@media (max-width: 768px) {
  .reviews-carousel {
    position: relative;
    overflow: hidden;
  }

  /* Testimonials grid → horizontal scroll-snap track */
  .testimonials-grid {
    display:                    flex;
    overflow-x:                 scroll;
    scroll-snap-type:           x mandatory;
    scroll-behavior:            smooth;
    -webkit-overflow-scrolling: touch;
    gap:                        1rem;
    padding:                    0 var(--container-pad) 1rem;
    scrollbar-width:            none;
    grid-template-columns:      unset;
    max-width:                  unset;
    margin:                     0;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }

  .testimonial-card {
    flex-shrink:       0;
    width:             82vw;
    max-width:         320px;
    scroll-snap-align: start;
  }

  /* Show arrows */
  .reviews-carousel__arrow {
    display:         flex;
    align-items:     center;
    justify-content: center;
    position:        absolute;
    top:             50%;
    transform:       translateY(-50%);
    z-index:         2;
    width:           40px;
    height:          40px;
    border-radius:   50%;
    border:          1.5px solid rgba(0, 128, 0, 0.25);
    background:      #fff;
    color:           var(--color-primary);
    box-shadow:      0 2px 8px rgba(0, 0, 0, 0.10);
    cursor:          pointer;
    transition:      background var(--ease), color var(--ease);
  }
  .reviews-carousel__arrow:hover {
    background: var(--color-primary);
    color:      #fff;
  }
  .reviews-carousel__arrow--prev { left:  0.5rem; }
  .reviews-carousel__arrow--next { right: 0.5rem; }

  .reviews-carousel__dots {
    display:         flex;
    justify-content: center;
    gap:             0.5rem;
    margin-top:      1.25rem;
  }

  .reviews-carousel__dot {
    width:         8px;
    height:        8px;
    border-radius: 50%;
    background:    rgba(0, 128, 0, 0.25);
    border:        none;
    cursor:        pointer;
    transition:    background var(--ease), transform var(--ease);
    padding:       0;
  }
  .reviews-carousel__dot.is-active {
    background: var(--color-primary);
    transform:  scale(1.3);
  }
}


/* ─── CLIENTS / PARTNERS MARQUEE ───────────────────────────── */

.clients-section {
  padding:        clamp(3rem, 5vw, 5rem) 0;
  background:     var(--color-white);
  border-top:     1px solid var(--color-border);
  border-bottom:  1px solid var(--color-border);
  overflow:       hidden;
}

.clients-section__header {
  text-align:    center;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
  padding:       0 var(--container-pad);
}

.clients-section__heading {
  font-size:   clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 800;
  color:       var(--color-text);
  line-height: 1.2;
  margin-top:  0.5rem;
}

/* ── Scroll viewport ── */
.clients-marquee {
  position:             relative;
  overflow:             hidden;
  /* Edge fade — identical to Stripe's technique */
  -webkit-mask-image:   linear-gradient(
                          to right,
                          transparent 0%,
                          black 10%,
                          black 90%,
                          transparent 100%
                        );
  mask-image:           linear-gradient(
                          to right,
                          transparent 0%,
                          black 10%,
                          black 90%,
                          transparent 100%
                        );
}

/* ── Moving strip ── */
.clients-track {
  display:    flex;
  align-items: flex-start;
  gap:        3.5rem;
  width:      max-content;
  animation:  clientsScroll 38s linear infinite;
  /* Pause on hover — gives users time to read company names */
  will-change: transform;
}

.clients-track:hover {
  animation-play-state: paused;
}

/* ── Individual logo card ── */
.client-item {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            0.875rem;
  flex-shrink:    0;
  cursor:         default;
}

/* Logo container — fixed height keeps strip perfectly level */
.client-item__logo-wrap {
  width:           140px;
  height:          64px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         0 0.5rem;
}

.client-item__logo {
  max-width:   100%;
  max-height:  100%;
  object-fit:  contain;
  display:     block;
  /* Greyscale + lower opacity → looks restrained, premium */
  filter:      grayscale(100%) opacity(0.45);
  transition:  filter 0.35s ease;
}

.client-item:hover .client-item__logo {
  filter: grayscale(0%) opacity(1);
}

/* Company name label */
.client-item__name {
  font-size:      0.7rem;
  font-weight:    700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          var(--color-text-muted);
  text-align:     center;
  opacity:        0.6;
  transition:     opacity 0.3s ease, color 0.3s ease;
  white-space:    nowrap;
}

.client-item:hover .client-item__name {
  opacity: 1;
  color:   var(--color-primary);
}

/* ── Keyframe ── */
@keyframes clientsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    gap: 2rem 3rem;
  }

  /* Hide the duplicate set when there's no animation */
  .client-item[aria-hidden="true"] {
    display: none;
  }
}


/* ─── CTA BANNER ────────────────────────────────────────────── */

.cta-banner {
  background:  var(--color-dark);
  padding:     clamp(5.5rem, 11vw, 9rem) 0;
  position:    relative;
  overflow:    hidden;
  isolation:   isolate;
}

/* Atmospheric green glow — emanates from below-center */
.cta-banner::before {
  content:   '';
  position:  absolute;
  bottom:    -30%;
  left:      50%;
  transform: translateX(-50%);
  width:     140%;
  height:    80%;
  background: radial-gradient(
    ellipse at center bottom,
    rgba(0, 128, 0, 0.16) 0%,
    rgba(0, 128, 0, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: ctaGlowPulse 5s ease-in-out infinite;
}

/* Subtle grid texture */
.cta-banner::after {
  content:  '';
  position: absolute;
  inset:    0;
  background-image:
    linear-gradient(rgba(0, 128, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 128, 0, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events:  none;
  z-index: 0;
}

@keyframes ctaGlowPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scaleY(1);   }
  50%       { opacity: 1;   transform: translateX(-50%) scaleY(1.12); }
}

/* ── Floating particles ── */
.cta-banner__particles {
  position:       absolute;
  inset:          0;
  pointer-events: none;
  z-index:        1;
}

.cta-particle {
  position:      absolute;
  border-radius: 50%;
  background:    var(--color-primary);
  opacity:       0;
  animation:     ctaFloat linear infinite;
}

.cta-particle--1 {
  width: 4px; height: 4px;
  left: 12%; bottom: -8px;
  animation-duration: 9s; animation-delay: 0s;
  opacity: 0.45;
}
.cta-particle--2 {
  width: 3px; height: 3px;
  left: 28%; bottom: -8px;
  animation-duration: 12s; animation-delay: 1.5s;
  opacity: 0.3;
}
.cta-particle--3 {
  width: 5px; height: 5px;
  left: 46%; bottom: -8px;
  animation-duration: 10s; animation-delay: 3s;
  opacity: 0.35;
}
.cta-particle--4 {
  width: 3px; height: 3px;
  left: 63%; bottom: -8px;
  animation-duration: 8s; animation-delay: 0.75s;
  opacity: 0.4;
}
.cta-particle--5 {
  width: 4px; height: 4px;
  left: 78%; bottom: -8px;
  animation-duration: 11s; animation-delay: 2s;
  opacity: 0.25;
}
.cta-particle--6 {
  width: 3px; height: 3px;
  left: 90%; bottom: -8px;
  animation-duration: 7s; animation-delay: 4s;
  opacity: 0.35;
}

@keyframes ctaFloat {
  0%   { transform: translateY(0)     scale(1);    opacity: 0;    }
  10%  { opacity: var(--op, 0.4); }
  90%  { opacity: var(--op, 0.4); }
  100% { transform: translateY(-500px) scale(0.6); opacity: 0;    }
}

/* ── Decorative corner accents ── */
.cta-banner__corner {
  position:      absolute;
  width:         120px;
  height:        120px;
  pointer-events: none;
  z-index:       1;
}

.cta-banner__corner--tl {
  top:    0;
  left:   0;
  border-top:  2px solid rgba(0, 128, 0, 0.2);
  border-left: 2px solid rgba(0, 128, 0, 0.2);
}

.cta-banner__corner--br {
  bottom: 0;
  right:  0;
  border-bottom: 2px solid rgba(0, 128, 0, 0.2);
  border-right:  2px solid rgba(0, 128, 0, 0.2);
}

/* ── Inner content — centered column ── */
.cta-banner__inner {
  position:       relative;
  z-index:        2;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  text-align:     center;
  gap:            0;
  max-width:      760px;
  margin:         0 auto;
  padding:        0 var(--container-pad);
}

/* Entrance animation (JS adds .is-visible class) */
.cta-banner__eyebrow,
.cta-banner__heading,
.cta-banner__sub,
.cta-banner__btn,
.cta-banner__trust {
  opacity:   0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0, 0.2, 1);
}

.cta-banner.is-visible .cta-banner__eyebrow { opacity: 1; transform: none; transition-delay: 0s;     }
.cta-banner.is-visible .cta-banner__heading { opacity: 1; transform: none; transition-delay: 0.12s;  }
.cta-banner.is-visible .cta-banner__sub     { opacity: 1; transform: none; transition-delay: 0.24s;  }
.cta-banner.is-visible .cta-banner__btn     { opacity: 1; transform: none; transition-delay: 0.38s;  }
.cta-banner.is-visible .cta-banner__trust   { opacity: 1; transform: none; transition-delay: 0.52s;  }

/* ── Eyebrow ── */
.cta-banner__eyebrow {
  display:     flex;
  align-items: center;
  gap:         0.875rem;
  margin-bottom: 1.75rem;
}

.cta-banner__eyebrow-text {
  font-size:      0.68rem;
  font-weight:    800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--color-primary);
  white-space:    nowrap;
}

.cta-banner__eyebrow-line {
  display:   block;
  width:     40px;
  height:    1px;
  background: linear-gradient(90deg, transparent, var(--color-primary));
  flex-shrink: 0;
}

.cta-banner__eyebrow-line:last-child {
  background: linear-gradient(90deg, var(--color-primary), transparent);
}

/* ── Heading ── */
.cta-banner__heading {
  font-size:     clamp(2rem, 5vw, 3.25rem);
  font-weight:   800;
  color:         var(--color-white);
  line-height:   1.13;
  letter-spacing: -0.02em;
  margin-bottom: 1.375rem;
}

.cta-banner__heading-em {
  font-style: normal;
  color:      var(--color-primary);
  position:   relative;
}

/* Underline accent on the em phrase */
.cta-banner__heading-em::after {
  content:    '';
  position:   absolute;
  bottom:     -4px;
  left:       0;
  right:      0;
  height:     2px;
  background: var(--color-primary);
  border-radius: 1px;
  opacity:    0.5;
}

/* ── Sub-copy ── */
.cta-banner__sub {
  font-size:   clamp(1rem, 1.6vw, 1.125rem);
  color:       rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  max-width:   52ch;
  margin-bottom: 2.75rem;
}

/* ── CTA Button ── */
.cta-banner__btn {
  position:        relative;
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             0.75rem;
  padding:         1rem 2.75rem;
  font-family:     var(--font);
  font-weight:     800;
  font-size:       1rem;
  letter-spacing:  0.04em;
  text-transform:  uppercase;
  background:      var(--color-primary);
  color:           var(--color-dark);
  border-radius:   var(--radius-sm);
  overflow:        hidden;
  cursor:          pointer;
  min-height:      60px;
  white-space:     nowrap;
  transition:      transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                   box-shadow 0.3s ease,
                   background 0.2s ease;
  box-shadow:      0 0 0 rgba(0, 128, 0, 0);
  margin-bottom:   2rem;
}

.cta-banner__btn:hover,
.cta-banner__btn:focus-visible {
  transform:  translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 128, 0, 0.35),
              0 4px  16px rgba(0, 128, 0, 0.25);
  background: #006600;
}

.cta-banner__btn:active {
  transform: translateY(-1px) scale(0.99);
}

/* Shine sweep on hover */
.cta-banner__btn-shine {
  position:   absolute;
  inset:      0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%
  );
  transform:  translateX(-100%) skewX(-15deg);
  transition: transform 0s;
}

.cta-banner__btn:hover .cta-banner__btn-shine {
  transform:  translateX(200%) skewX(-15deg);
  transition: transform 0.55s ease;
}

/* Animated arrow icon */
.cta-banner__btn-arrow {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size:  0.85rem;
}

.cta-banner__btn:hover .cta-banner__btn-arrow {
  transform: translateX(5px);
}

/* ── Trust strip ── */
.cta-banner__trust {
  display:     flex;
  align-items: center;
  flex-wrap:   wrap;
  justify-content: center;
  gap:         0.5rem 1.75rem;
  list-style:  none;
  padding:     0;
}

.cta-banner__trust li {
  display:     flex;
  align-items: center;
  gap:         0.4rem;
  font-size:   0.8125rem;
  font-weight: 600;
  color:       rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

.cta-banner__trust i {
  color:     var(--color-primary);
  font-size: 0.75rem;
  opacity:   0.8;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .cta-banner__corner {
    width:  70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .cta-banner__btn {
    width:   100%;
    padding: 1rem 1.5rem;
  }

  .cta-banner__trust {
    gap: 0.5rem 1rem;
  }

  .cta-banner__heading-em::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-banner::before,
  .cta-particle             { animation: none; }
  .cta-banner__btn-shine    { display: none; }
  .cta-banner__eyebrow,
  .cta-banner__heading,
  .cta-banner__sub,
  .cta-banner__btn,
  .cta-banner__trust        { opacity: 1; transform: none; transition: none; }
}


/* ─── RESPONSIVE ────────────────────────────────────────────── */

/* Blog slide — mid breakpoint (≤ 960px): tighten proportions */
@media (max-width: 960px) {
  .hero__content--split {
    gap: 1.75rem;
  }

  .hero__col--text {
    flex:      0 0 46%;
    max-width: 46%;
  }

  .hero-post-card__excerpt {
    display: none;
  }

  .hero-post-card__thumb {
    width:  60px;
    height: 60px;
  }
}

/* Blog slide — tablet & mobile (≤ 768px): column layout, slender stacked cards */
@media (max-width: 768px) {
  .hero__content--split {
    flex-direction:  column;
    justify-content: center;
    align-items:     flex-start;
    gap:             0.875rem;
  }

  .hero__col--text {
    flex:      none;
    max-width: 100%;
  }

  .hero__col--cards {
    flex-direction: column;
    gap:            0.5rem;
    width:          100%;
    transform:      translateY(20px);
  }

  .hero__slide.is-active .hero__col--cards {
    transform: translateY(0);
  }

  /* Slender horizontal card: thumbnail left, text right */
  .hero-post-card {
    flex-direction: row;
    align-items:    center;
    padding:        0.5rem 0.75rem 0.5rem 0.5rem;
    gap:            0.625rem;
  }

  .hero-post-card__thumb {
    flex-shrink:   0;
    width:         48px;
    height:        48px;
    border-radius: 0.375rem;
  }

  .hero-post-card__body {
    gap: 0.125rem;
  }

  .hero-post-card__meta {
    gap: 0.4rem;
  }

  .hero-post-card__cat {
    font-size: 0.58rem;
    padding:   0.15rem 0.45rem;
  }

  .hero-post-card__time {
    font-size: 0.62rem;
  }

  .hero-post-card__title {
    font-size:          0.8125rem;
    -webkit-line-clamp: 1;
  }

  .hero-post-card__excerpt,
  .hero-post-card__cta {
    display: none;
  }

  /* Trim subtext to 1 line to free vertical space for cards */
  .hero__slide--blog .hero__subtext {
    display:            -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow:           hidden;
  }
}

/* Blog slide — small mobile (≤ 420px): tighten further */
@media (max-width: 420px) {
  .hero__content--split {
    gap: 0.625rem;
  }

  .hero__col--cards {
    gap: 0.375rem;
  }

  .hero-post-card {
    padding: 0.4rem 0.625rem 0.4rem 0.4rem;
    gap:     0.5rem;
  }

  .hero-post-card__thumb {
    width:  40px;
    height: 40px;
  }

  .hero-post-card__title {
    font-size: 0.75rem;
  }
}

/* Large tablet / small desktop (≤ 1024px) */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows:    auto;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    grid-column: auto;
    grid-row:    auto;
    height:      240px;
  }

}

/* Tablet (≤ 768px) */
@media (max-width: 768px) {
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar__item:nth-child(3)::before {
    display: none;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-wrap::before {
    display: none;
  }

  .about-badge {
    bottom: 1rem;
    left:   1rem;
  }

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

  .cta-banner__inner {
    flex-direction: column;
    text-align:     center;
    align-items:    center;
  }

  .cta-banner__actions {
    justify-content: center;
  }

  .hero__scroll-cue {
    display: none;
  }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {

  .industries-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 220px !important;
  }

  .hero__controls {
    gap: 1rem;
    bottom: 1.75rem;
  }

  .hero__actions {
    flex-direction:  column;
    align-items:     flex-start;
    gap:             0.75rem;
  }

  .hero__actions .btn-ghost,
  .hero__actions .btn-accent {
    width:    100%;
    max-width: 280px;
    justify-content: center;
  }

  .about-badge {
    position: relative;
    bottom:   auto;
    left:     auto;
    margin-top: 1.5rem;
    align-self: flex-start;
  }
}

/* Very small (≤ 420px) */
@media (max-width: 420px) {
  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-bar__item + .stats-bar__item::before {
    display: none;
  }
}


/* ═══════════════════════════════════════════════════════════════
   HOME — CERTIFICATIONS SECTION
═══════════════════════════════════════════════════════════════ */
.home-certs {
  position:   relative;
  background: #ffffff;
  overflow:   hidden;
  padding:    clamp(4.5rem, 9vw, 7.5rem) 1.5rem;
}

/* Decorative background */
.home-certs__bg { position: absolute; inset: 0; pointer-events: none; }

.home-certs__orb {
  position:      absolute;
  border-radius: 50%;
  filter:        blur(100px);
  opacity:       0.09;
}
.home-certs__orb--1 {
  width: 560px; height: 560px;
  background: var(--color-primary);
  top: -180px; right: -100px;
}
.home-certs__orb--2 {
  width: 360px; height: 360px;
  background: var(--color-accent);
  bottom: -120px; left: -80px;
}

/* Inner */
.home-certs__inner {
  position:        relative;
  z-index:         1;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  text-align:      center;
}

/* Heading + typewriter */
.home-certs__heading {
  font-size:   clamp(1.85rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color:       #0d1a0d;
  line-height: 1.2;
  min-height:  1.3em;        /* prevents layout shift while typing */
  margin:      0.5rem 0 1.5rem;
  letter-spacing: -0.01em;
}

.home-certs__typewriter { color: var(--color-primary); }

/* Blinking cursor */
.home-certs__cursor {
  display:          inline-block;
  width:            3px;
  height:           0.85em;
  background:       var(--color-primary);
  margin-left:      3px;
  vertical-align:   text-bottom;
  border-radius:    1px;
  animation:        cursorBlink 0.85s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Sub text */
.home-certs__sub {
  font-size:   clamp(0.95rem, 1.8vw, 1.05rem);
  color:       #5a6b5a;
  max-width:   560px;
  line-height: 1.75;
  margin:      0 0 2.75rem;
}

/* Credential badge row */
.home-certs__badges {
  display:         flex;
  flex-wrap:       wrap;
  justify-content: center;
  gap:             1rem;
  margin-bottom:   2.75rem;
  width:           100%;
  max-width:       860px;
}

.home-certs__badge {
  position:        relative;
  display:         flex;
  align-items:     center;
  gap:             0.875rem;
  background:      #f7f9f7;
  border:          1px solid rgba(0,128,0,0.25);
  border-radius:   0.875rem;
  padding:         1rem 1.5rem;
  flex:            1 1 220px;
  max-width:       280px;
  transition:      background 0.25s, border-color 0.25s, transform 0.25s;
  cursor:          default;
  overflow:        hidden;
}

.home-certs__badge::before {
  content:    '';
  position:   absolute;
  inset:      0;
  background: linear-gradient(135deg, rgba(0,128,0,0.07) 0%, transparent 60%);
  opacity:    0;
  transition: opacity 0.3s;
}

.home-certs__badge:hover {
  background:    rgba(0,128,0,0.08);
  border-color:  rgba(0,128,0,0.45);
  transform:     translateY(-3px);
}
.home-certs__badge:hover::before { opacity: 1; }

.home-certs__badge-icon {
  width:           44px;
  height:          44px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      rgba(0,128,0,0.12);
  border-radius:   50%;
  flex-shrink:     0;
}
.home-certs__badge-icon i {
  font-size: 1.1rem;
  color:     var(--color-primary);
}

.home-certs__badge-text {
  display:        flex;
  flex-direction: column;
  gap:            0.15rem;
  text-align:     left;
}

.home-certs__badge-name {
  font-size:      1rem;
  font-weight:    800;
  color:          #0d1a0d;
  letter-spacing: 0.04em;
}

.home-certs__badge-body {
  font-size:   0.72rem;
  font-weight: 500;
  color:       #7a8a7a;
  line-height: 1.35;
}

/* Active pip */
.home-certs__badge-pip {
  position:      absolute;
  top:           0.75rem;
  right:         0.875rem;
  width:         7px;
  height:        7px;
  background:    var(--color-primary);
  border-radius: 50%;
  box-shadow:    0 0 6px var(--color-primary);
  animation:     pipPulse 2.4s ease-in-out infinite;
}
@keyframes pipPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(1.5); }
}

/* CTA link */
.home-certs__cta {
  display:         inline-flex;
  align-items:     center;
  gap:             0.6rem;
  padding:         0.85rem 2rem;
  background:      transparent;
  border:          2px solid var(--color-primary);
  color:           var(--color-primary);
  font-size:       0.9rem;
  font-weight:     700;
  border-radius:   var(--radius-pill, 999px);
  text-decoration: none;
  transition:      background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s, box-shadow 0.22s;
  box-shadow:      0 0 0 rgba(0,128,0,0);
  min-height:      44px;
}

.home-certs__cta:hover,
.home-certs__cta:focus-visible {
  background:   var(--color-primary);
  color:        #060d06;
  border-color: var(--color-primary);
  transform:    translateY(-2px);
  box-shadow:   0 6px 24px rgba(0,128,0,0.35);
  outline:      none;
}

.home-certs__cta-arrow {
  transition: transform 0.22s;
}
.home-certs__cta:hover .home-certs__cta-arrow {
  transform: translateX(4px);
}


/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .home-certs__badges {
    flex-direction: column;
    align-items:    stretch;
  }
  .home-certs__badge {
    max-width: 100%;
    flex:      unset;
  }
}

@media (max-width: 480px) {
  .home-certs__cta {
    width:           100%;
    justify-content: center;
  }
  .home-certs__badge { padding: 0.875rem 1.25rem; }
}


/* ─── SERVICES CAROUSEL (mobile only) ──────────────────────── */

/* Hide arrows/dots on desktop */
.services-carousel__arrow,
.services-carousel__dots { display: none; }

@media (max-width: 768px) {
  /* Outer wrapper positions arrows */
  .services-carousel {
    position: relative;
    overflow: hidden;
  }

  /* Convert grid → horizontal scroll-snap track */
  .services-grid {
    display:                    flex;
    overflow-x:                 scroll;
    scroll-snap-type:           x mandatory;
    scroll-behavior:            smooth;
    -webkit-overflow-scrolling: touch;
    gap:                        1rem;
    padding:                    0 var(--container-pad) 1rem;
    scrollbar-width:            none;
    /* Reset grid properties */
    grid-template-columns:      unset;
    max-width:                  unset;
    margin:                     0;
  }
  .services-grid::-webkit-scrollbar { display: none; }

  /* Each card snaps and takes ~85vw */
  .service-card {
    flex-shrink:      0;
    width:            82vw;
    max-width:        320px;
    scroll-snap-align: start;
  }

  /* Show arrows */
  .services-carousel__arrow {
    display:         flex;
    align-items:     center;
    justify-content: center;
    position:        absolute;
    top:             50%;
    transform:       translateY(-50%);
    z-index:         2;
    width:           40px;
    height:          40px;
    border-radius:   50%;
    border:          1.5px solid rgba(0, 128, 0, 0.25);
    background:      #fff;
    color:           var(--color-primary);
    box-shadow:      0 2px 8px rgba(0, 0, 0, 0.10);
    cursor:          pointer;
    transition:      background var(--ease), color var(--ease);
    /* Override the global display:none above */
    display:         flex;
  }
  .services-carousel__arrow:hover {
    background: var(--color-primary);
    color:      #fff;
  }
  .services-carousel__arrow--prev { left:  0.5rem; }
  .services-carousel__arrow--next { right: 0.5rem; }

  /* Dots container */
  .services-carousel__dots {
    display:         flex;
    justify-content: center;
    gap:             0.5rem;
    margin-top:      1.25rem;
  }

  /* Individual dot (created by JS) */
  .services-carousel__dot {
    width:         8px;
    height:        8px;
    border-radius: 50%;
    background:    rgba(0, 128, 0, 0.25);
    border:        none;
    cursor:        pointer;
    transition:    background var(--ease), transform var(--ease);
    padding:       0;
  }
  .services-carousel__dot.is-active {
    background: var(--color-primary);
    transform:  scale(1.3);
  }
}
