/* =========================================================================
   HELM ENERGY SOLUTIONS — MAIN STYLESHEET
   Built on Bootstrap 5 grid/utilities. Uses tokens from colors.css.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-on-light);
  background: var(--paper-50);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.display-font {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.65rem, 2.4vw, 2.1rem);
}

h2 {
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
}

h3 {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
}

h4 {
  font-size: 1.05rem;
}

h5 {
  font-size: .92rem;
}

h6 {
  font-size: .85rem;
}

p {
  font-size: .9rem;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

.container-xl {
  max-width: 1200px;
}

/* Ensure container has comfortable horizontal padding on all screen sizes */
@media (max-width: 575.98px) {

  .container-xl,
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

.text-brand {
  color: var(--brand-primary) !important;
}

.bg-brand {
  background: var(--brand-primary) !important;
}

.bg-ink {
  background: var(--ink-900) !important;
}

.bg-ink-950 {
  background: var(--ink-950) !important;
}

.bg-paper {
  background: var(--paper-50) !important;
}

/* ---------------------------------------------------------------------
   Buttons — sized down: was 0.75rem/1.5rem, read as oversized "banner" buttons
   --------------------------------------------------------------------- */
.btn {
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .85rem;
  padding: .45rem 1.15rem;
  transition: all .2s ease;
}

.btn-brand {
  background: var(--brand-primary);
  color: var(--ink-950);
  border: 1px solid var(--brand-primary);
}

.btn-brand:hover {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: var(--ink-950);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light-custom {
  background: transparent;
  border: 1px solid rgba(26, 31, 23, .40);
  color: #1a1f17;
}

.btn-outline-light-custom:hover {
  background: rgba(26, 31, 23, .06);
  color: #1a1f17;
  border-color: #1a1f17;
}

.btn-dark-pill {
  background: var(--ink-950);
  color: #fff;
  border-radius: var(--radius-pill);
}

.btn-dark-pill .icon-chip {
  background: var(--brand-primary);
  color: var(--ink-950);
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  font-size: .75rem;
  border-radius: 50%;
  margin-left: .5rem;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   Navbar
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--ink-950);
  border-bottom: 1px solid var(--ink-700);
}

/* On mobile the navbar sits inside site-header — kill the double vertical padding */
@media (max-width: 991.98px) {
  .site-header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .site-header .navbar.container-xl {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}

/* Desktop: collapse the outer header py-2 so only nav py-2 counts */
@media (min-width: 992px) {
  .site-header.py-2 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

.navbar-brand-logo {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.site-logo-img {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
  /* Logo is white — renders perfectly on dark navbar */
}

@media (min-width: 992px) {
  .site-logo-img {
    height: 38px;
  }
}

.footer-logo-img {
  height: 65px;
  opacity: 0.9;
}

.main-nav .nav-link {
  color: rgba(255, 255, 255, .82);
  font-weight: 500;
  font-size: .88rem;
  padding: .4rem .75rem !important;
  position: relative;
}

.main-nav .nav-link.active,
.main-nav .nav-link:hover {
  color: #fff;
}

/* Active underline only on desktop nav */
@media (min-width: 992px) {
  .main-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: .75rem;
    right: .75rem;
    bottom: 0;
    height: 2px;
    background: var(--brand-primary);
  }
}

/* Mobile offcanvas active link: brand-colored text, no underline pseudo element */
.offcanvas .main-nav .nav-link.active {
  color: var(--brand-primary) !important;
}

/* Dropdown styling & hover interaction */
.main-nav .dropdown-toggle::after {
  vertical-align: 0.18em;
  margin-left: 0.35rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-top-color: rgba(255, 255, 255, 0.7);
}

.main-nav .nav-item.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
  border-top-color: var(--brand-primary);
}

.main-nav .dropdown-menu {
  background: #111811;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  padding: 0.5rem 0;
  min-width: 320px;
}

.main-nav .dropdown-item {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  background: transparent;
  transition: color 0.15s ease, background-color 0.15s ease, padding-left 0.15s ease;
}

.main-nav .dropdown-item:hover,
.main-nav .dropdown-item:focus {
  color: var(--brand-primary);
  background: rgba(166, 226, 46, 0.08);
  padding-left: 1.45rem;
}

.main-nav .dropdown-item.active {
  background: rgba(166, 226, 46, 0.12);
  color: var(--brand-primary);
}

@media (min-width: 992px) {
  .main-nav .nav-item.dropdown {
    position: relative;
  }

  .main-nav .nav-item.dropdown .dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    pointer-events: none;
    margin-top: 0.25rem;
  }

  .main-nav .nav-item.dropdown .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
  }

  .main-nav .nav-item.dropdown:hover>.dropdown-menu,
  .main-nav .nav-item.dropdown .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.menu-toggle-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-sm);
  color: #fff;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.35rem;
}

/* Offcanvas nav body padding */
.offcanvas-body {
  padding: 1.25rem 1.25rem 2rem;
}

.offcanvas .main-nav .nav-link {
  padding: 0.65rem 0.5rem !important;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
}

.offcanvas .main-nav .nav-item:last-child .nav-link {
  border-bottom: none;
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: #f8f9fa;
  color: #1a1f17;
  overflow: hidden;
  padding-top: 2.75rem;
  padding-bottom: 2.25rem;
}

@media (max-width: 767.98px) {
  .hero-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }
}

.hero-section::before {
  content: none;
}

.hero-logo {
  margin-bottom: 1rem;
}

.hero-logo-img {
  height: 65px;
  width: auto;
  display: block;
  object-fit: contain;
}

.hero-logo-img-inline {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .hero-logo-img {
    height: 55px;
  }

  .hero-logo-img-inline {
    height: 60px;
  }
}

.hero-eyebrow {
  font-size: .75rem;
  letter-spacing: .12em;
  color: #1a3a6b;
  font-weight: 700;
  text-shadow: none;
}

.hero-title {
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: #0d1b3e;
}

.hero-lede {
  color: #1e3058;
  font-size: .95rem;
  max-width: 30rem;
  font-weight: 500;
}

@media (max-width: 575.98px) {
  .hero-lede {
    font-size: .88rem;
  }
}

/* Full-bleed hero background */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #ffffff url('../assets/hero_section_bg_light.jpg') center right / cover no-repeat;
}

.hero-photo img,
.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(248,249,250,.97) 0%,
    rgba(248,249,250,.92) 28%,
    rgba(248,249,250,.60) 50%,
    rgba(248,249,250,.15) 68%,
    rgba(248,249,250,.00) 80%);
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(248,249,250,.96) 0%,
      rgba(248,249,250,.88) 55%,
      rgba(248,249,250,.80) 100%);
  }
}

.hero-section .container-xl {
  z-index: 2;
}

/* Kept for the smaller page-hero visual used on interior pages (About, Projects, Blog) */
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(10, 13, 8, .15), rgba(10, 13, 8, .85)),
    linear-gradient(135deg, var(--ink-900), var(--ink-950));
  display: flex;
  align-items: flex-end;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: .9;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.impact-card {
  background: rgba(10, 14, 7, .82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(166, 226, 46, .25);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 360px;
  margin-left: auto;
}

@media (max-width: 991.98px) {
  .impact-card {
    margin: 1.25rem auto 0;
  }
}

.impact-card .impact-title {
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--brand-primary);
  font-weight: 700;
}

.impact-stat-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(166, 226, 46, .16);
  color: var(--brand-primary);
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .4rem;
}

.impact-stat .value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.impact-stat .label {
  font-size: .66rem;
  color: rgba(255,255,255,.70);
  line-height: 1.3;
}

.trust-strip {
  position: relative;
  z-index: 2;
  background: rgba(14, 20, 9, .7);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-md);
  margin-top: 2rem;
  padding: .85rem 1.15rem;
}

@media (max-width: 575.98px) {
  .trust-strip {
    padding: .75rem .85rem;
    margin-top: 1.5rem;
  }
}

.trust-strip .trust-item {
  display: flex;
  gap: .6rem;
  align-items: center;
  color: #fff;
}

.trust-strip .trust-item i {
  font-size: 1.1rem;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.trust-strip .trust-item strong {
  font-size: .88rem;
}

.trust-strip .trust-item small {
  color: var(--text-on-dark-muted);
  display: block;
  font-size: .68rem;
  letter-spacing: .02em;
}

/* ---------------------------------------------------------------------
   Section headings
   --------------------------------------------------------------------- */
.eyebrow {
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--brand-primary-dark);
  font-weight: 700;
  text-transform: uppercase;
}

.section-pad {
  padding: 3.25rem 0;
}

@media (max-width: 767.98px) {
  .section-pad {
    padding: 2rem 0;
  }
}

@media (max-width: 575.98px) {
  .section-pad {
    padding: 1.75rem 0;
  }
}

.dot-texture {
  position: relative;
  overflow: hidden;
}

.dot-texture::before,
.dot-texture::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  background-image: radial-gradient(circle, rgba(166, 226, 46, .35) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle, #000 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.dot-texture::before {
  left: -60px;
  bottom: -60px;
}

.dot-texture::after {
  right: -40px;
  top: 20%;
}

.dot-texture>.container-xl {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------------
   Value pillars (Reduce / Optimize / Sustain)
   --------------------------------------------------------------------- */
.pillar-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 2.25rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--brand-primary-tint);
  color: var(--brand-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  margin-bottom: .75rem;
}

.pillar-more {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--paper-200);
  background: #fff;
  color: var(--text-on-light-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .74rem;
  transition: all .2s ease;
}

.pillar-more:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--ink-950);
}

/* ---------------------------------------------------------------------
   Service cards
   --------------------------------------------------------------------- */
.service-card {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  height: 100%;
  transition: transform .3s ease, border-color .3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
}

.service-card .card-media {
  position: relative;
  height: 135px;
  overflow: hidden;
  background: var(--ink-900);
}

.service-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.service-card:hover .card-media img {
  transform: scale(1.08);
}

.service-card .card-media .service-num {
  position: absolute;
  top: .65rem;
  left: .65rem;
  background: rgba(10, 13, 8, .85);
  backdrop-filter: blur(4px);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: .65rem;
  border-radius: var(--radius-sm);
  padding: .2rem .5rem;
  z-index: 2;
  border: 1px solid rgba(166, 226, 46, .3);
}

.service-card .card-media i {
  position: absolute;
  left: 1rem;
  bottom: 0.75rem;
  font-size: .95rem;
  color: var(--ink-950);
  background: var(--brand-primary);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.service-card .card-body-custom {
  padding: 1.25rem 1.15rem 1.15rem;
}

.service-card h5 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.service-card p {
  color: var(--text-on-dark-muted);
  font-size: .84rem;
  line-height: 1.55;
}

.service-card .explore-link {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: .82rem;
}

.service-card .explore-link i {
  transition: transform .2s ease;
}

.service-card:hover .explore-link i {
  transform: translateX(4px);
}

/* ---------------------------------------------------------------------
   Approach / process steps
   --------------------------------------------------------------------- */
.approach-section {
  background: var(--ink-950);
  color: #fff;
  padding: 3.25rem 0;
}

@media (max-width: 767.98px) {
  .approach-section {
    padding: 2.25rem 0;
  }
}

.approach-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.approach-steps::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 4%;
  right: 4%;
  border-top: 1px dashed var(--ink-700);
  z-index: 0;
}

@media (max-width: 767.98px) {
  .approach-steps::before {
    display: none;
  }
}

.approach-step {
  flex: 1 1 140px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.approach-step .step-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid var(--ink-700);
  background: var(--ink-900);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .6rem;
  font-size: .82rem;
}

.approach-step .step-num {
  font-size: .68rem;
  color: var(--text-on-dark-muted);
}

.approach-step h6 {
  color: #fff;
  font-weight: 700;
  margin: .2rem 0 .35rem;
  font-size: .88rem;
}

.approach-step p {
  color: var(--text-on-dark-muted);
  font-size: .8rem;
}

/* ---------------------------------------------------------------------
   Interactive Journey Timeline (About Us)
   --------------------------------------------------------------------- */
.journey-interactive-wrap {
  position: relative;
  background: linear-gradient(180deg, var(--ink-900) 0%, rgba(10, 13, 8, 0.95) 100%);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

/* Track container */
.journey-track-container {
  position: relative;
  padding: 1.5rem 0 2rem;
  margin-bottom: 1.25rem;
}

/* Thick connecting line track */
.journey-track-line {
  position: absolute;
  top: 3.55rem;
  left: 6%;
  right: 6%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  z-index: 0;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Active progress fill (thick, glowing brand line) */
.journey-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(166, 226, 46, 0.85), 0 0 6px var(--brand-primary);
  transition: width 0.42s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* Node buttons container */
.journey-nodes {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

/* Node button */
.journey-node-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1 1 0;
  color: var(--text-on-dark-muted);
  transition: all 0.3s ease;
  outline: none;
}

.journey-node-btn:focus-visible .node-icon-circle {
  outline: 3px solid var(--brand-primary);
  outline-offset: 4px;
}

/* Year Badge */
.node-year-badge {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-on-dark-muted);
  margin-bottom: 0.65rem;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

/* Circle Icon */
.node-icon-circle {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--ink-950);
  border: 3px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--text-on-dark-muted);
  transition: all 0.35s cubic-bezier(0.34, 1.5, 0.64, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.65rem;
  position: relative;
}

/* Milestone Label */
.node-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-on-dark-muted);
  text-align: center;
  transition: color 0.3s ease;
  max-width: 120px;
}

/* Hover State */
.journey-node-btn:hover .node-year-badge {
  color: var(--brand-primary);
  background: rgba(166, 226, 46, 0.12);
  border-color: rgba(166, 226, 46, 0.35);
}

.journey-node-btn:hover .node-icon-circle {
  transform: translateY(-3px) scale(1.08);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  box-shadow: 0 0 18px rgba(166, 226, 46, 0.45);
}

.journey-node-btn:hover .node-label {
  color: #ffffff;
}

/* Active State */
.journey-node-btn.active .node-year-badge {
  background: var(--brand-primary);
  color: var(--ink-950);
  border-color: var(--brand-primary);
  font-weight: 800;
  box-shadow: 0 0 14px rgba(166, 226, 46, 0.5);
}

.journey-node-btn.active .node-icon-circle {
  background: var(--brand-primary);
  color: var(--ink-950);
  border-color: #ffffff;
  border-width: 4px;
  transform: translateY(-4px) scale(1.18);
  box-shadow: 0 0 26px rgba(166, 226, 46, 0.75), 0 0 0 6px rgba(166, 226, 46, 0.25);
}

.journey-node-btn.active .node-label {
  color: var(--brand-primary);
  font-weight: 700;
}

/* Passed nodes */
.journey-node-btn.passed .node-icon-circle {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--ink-900);
}

.journey-node-btn.passed .node-year-badge {
  color: var(--brand-primary);
  border-color: rgba(166, 226, 46, 0.35);
}

/* Spotlight Card (Active milestone showcase) */
.journey-spotlight-card {
  background: linear-gradient(135deg, rgba(27, 37, 19, 0.7) 0%, rgba(14, 20, 9, 0.95) 100%);
  border: 1px solid rgba(166, 226, 46, 0.35);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.journey-spotlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--brand-primary) 50%, transparent 100%);
}

.journey-spotlight-panel {
  display: none;
  animation: journeyFadeIn 0.35s ease forwards;
}

.journey-spotlight-panel.active {
  display: block;
}

@keyframes journeyFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Milestone Cards Grid */
.journey-cards-grid {
  margin-top: 1.5rem;
}

.journey-card-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.1rem;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  outline: none;
}

.journey-card-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(166, 226, 46, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.journey-card-item:focus-visible {
  outline: 2px solid var(--brand-primary);
}

.journey-card-item.active {
  background: rgba(166, 226, 46, 0.09);
  border-color: var(--brand-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(166, 226, 46, 0.25);
}

.journey-card-item.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 3px;
  background: var(--brand-primary);
  border-radius: 0 0 4px 4px;
}

/* Prev/Next Controls */
.journey-ctrl-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.88rem;
}

.journey-ctrl-btn:hover:not(:disabled) {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--ink-950);
  transform: scale(1.08);
}

.journey-ctrl-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
  .journey-interactive-wrap {
    padding: 1.5rem 1.25rem;
  }

  .node-label {
    font-size: 0.75rem;
    max-width: 90px;
  }

  .node-icon-circle {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .journey-track-container {
    padding: 0;
    margin-bottom: 1.25rem;
  }

  .journey-track-line {
    top: 2.85rem;
    left: 8%;
    right: 8%;
    height: 5px;
  }

  .node-label {
    display: none;
  }

  .node-year-badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    margin-bottom: 0.4rem;
  }

  .node-icon-circle {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.95rem;
    margin-bottom: 0;
  }

  .journey-spotlight-card {
    padding: 1.25rem;
  }
}

/* ---------------------------------------------------------------------
   Case study cards
   --------------------------------------------------------------------- */
.case-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: box-shadow .25s ease, transform .25s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.case-card .case-media {
  height: 175px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-900), var(--ink-950));
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.case-card:hover .case-img {
  transform: scale(1.06);
}

.case-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 8, .65) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: .6rem .75rem;
}

.case-overlay-tag {
  background: rgba(166, 226, 46, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(166, 226, 46, 0.35);
  color: var(--brand-primary);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: .22rem .65rem;
  display: inline-flex;
  align-items: center;
}

.case-card .case-body {
  padding: .9rem 1rem 1rem;
}

.case-card .case-tag {
  font-size: .64rem;
  letter-spacing: .06em;
  color: var(--brand-primary-dark);
  text-transform: uppercase;
  font-weight: 700;
}

.case-card h5 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink-950);
  line-height: 1.35;
  margin-bottom: .4rem;
}

.case-card .case-stats {
  display: flex;
  gap: 1rem;
  margin: .55rem 0;
}

.case-card .case-stats div small {
  display: block;
  color: var(--text-on-light-muted);
  font-size: .7rem;
}

.case-card .case-stats div strong {
  font-size: .9rem;
}

/* ---------------------------------------------------------------------
   Stats band
   --------------------------------------------------------------------- */
.stats-band {
  background: var(--ink-950);
  color: #fff;
  padding: 4.25rem 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 767.98px) {
  .stats-band {
    padding: 3rem 0;
  }
}

.stat-item i {
  font-size: 1.4rem;
  color: var(--brand-primary);
}

.stat-item .stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  font-family: var(--font-display);
  margin: 0.2rem 0;
}

.stat-item .stat-label {
  color: var(--text-on-dark-muted);
  font-size: .78rem;
  line-height: 1.4;
}

/* ---------------------------------------------------------------------
   Savings Calculator Section
   --------------------------------------------------------------------- */
#savings-calculator {
  padding: 4.5rem 0;
  position: relative;
}

#savings-calculator h2 {
  color: var(--ink-950);
}

@media (max-width: 767.98px) {
  #savings-calculator {
    padding: 3rem 0;
  }
}

/* ---------------------------------------------------------------------
   CTA band with specialist asset
   --------------------------------------------------------------------- */
.cta-band {
  background: var(--ink-900);
  background: linear-gradient(100deg, var(--ink-950) 0%, var(--ink-800) 48%, var(--ink-900) 100%);
  color: #fff;
  border-radius: 22px;
  padding: 1.15rem 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(217, 166, 46, 0.18);
}

.cta-band-img {
  height: 135px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.cta-band-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.cta-band-title .text-brand {
  color: var(--brand-primary) !important;
}

.cta-band-subtitle {
  font-family: var(--font-body);
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
  font-weight: 400;
}

.cta-band .cta-btn {
  background: var(--brand-primary);
  color: var(--ink-950);
  border: 1px solid var(--brand-primary);
  border-radius: 12px;
  padding: 0.75rem 1.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(217, 166, 46, 0.28);
}

.cta-band .cta-btn:hover {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: var(--ink-950);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 166, 46, 0.45);
}

@media (max-width: 991.98px) {
  .cta-band {
    padding: 1.75rem 1.5rem;
    text-align: center;
  }

  .cta-band-img {
    height: 115px;
  }
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-950);
  color: var(--text-on-dark-muted);
  padding: 2.75rem 0 1.25rem;
}

.site-footer h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: .75rem;
  font-size: .88rem;
}

.site-footer a {
  color: var(--text-on-dark-muted);
}

.site-footer a:hover {
  color: var(--brand-primary);
}

.footer-figure {
  background:
    radial-gradient(circle at 65% 35%, rgba(166, 226, 46, .14), transparent 55%),
    repeating-linear-gradient(115deg, rgba(166, 226, 46, .06) 0 2px, transparent 2px 34px),
    linear-gradient(160deg, var(--ink-900), var(--ink-950));
  min-height: 140px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer-figure i {
  font-size: 1.15rem;
  color: var(--ink-950);
  background: var(--brand-primary);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-round {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--ink-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  margin-right: .5rem;
  transition: all 0.2s ease;
}

.social-round:hover {
  background: var(--brand-primary);
  color: var(--ink-950);
  border-color: var(--brand-primary);
}

.footer-bottom {
  border-top: 1px solid var(--ink-700);
  font-size: .82rem;
  padding-top: 1.1rem;
  margin-top: .5rem;
}

/* Footer contact list icons */
.site-footer ul.list-unstyled li i.bi {
  font-size: 1rem;
  vertical-align: middle;
}

/* ---------------------------------------------------------------------
   Generic page hero (About / Contact / Projects / Services / Blog)
   --------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10, 13, 8, .78) 0%, rgba(10, 13, 8, .94) 100%),
    url('../assets/hero_section_bg.png') center 30% / cover no-repeat;
  color: #fff;
  padding: 4rem 0 3.5rem;
}

@media (max-width: 767.98px) {
  .page-hero {
    padding: 2.5rem 0 2rem;
  }
}

@media (max-width: 575.98px) {
  .page-hero {
    padding: 2rem 0 1.75rem;
  }
}

.page-hero h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.page-hero-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 280px;
  max-width: 500px;
  object-fit: contain;
  margin-left: auto;
}

@media (max-width: 767.98px) {
  .page-hero-img {
    max-height: 200px;
    margin: 0 auto;
  }
}

/* ---------------------------------------------------------------------
   Accordion (override Bootstrap blue)
   --------------------------------------------------------------------- */
.accordion-button:not(.collapsed) {
  background: var(--brand-primary-tint);
  color: var(--ink-950);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1);
}

.accordion-button:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 .2rem rgba(166, 226, 46, .25);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0);
}

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.form-control,
.form-select {
  border-radius: var(--radius-sm);
  padding: .5rem .8rem;
  font-size: .88rem;
  border: 1px solid var(--paper-200);
  background: var(--paper-50);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 .2rem rgba(166, 226, 46, .25);
  background: #fff;
}

.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.check-tile {
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-sm);
  padding: .5rem .8rem;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.check-tile:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-tint);
}

.check-tile input {
  accent-color: var(--brand-primary-dark);
  margin-left: auto;
}

/* Form Success/Error Messages */
.alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  border-color: #c3e6cb;
}

.alert-success i {
  color: #155724;
  font-size: 1.2rem;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  border-color: #f5c6cb;
}

.alert-danger i {
  color: #721c24;
  font-size: 1.2rem;
}

.d-none {
  display: none !important;
}

/* ---------------------------------------------------------------------
   Utility: map container & overlay card
   --------------------------------------------------------------------- */
.map-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  line-height: normal;
  background: var(--surface-card);
}

.map-container iframe {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
}

.map-overlay-card {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 10;
  background: #111611;
  color: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  max-width: 320px;
  width: calc(100% - 3rem);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.map-overlay-card .location-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.map-overlay-card .location-header i {
  color: var(--brand-primary);
  font-size: 1.25rem;
  line-height: 1;
}

.map-overlay-card .location-header h6 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.map-overlay-card .location-address {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.5rem;
}

.map-overlay-card .btn-directions {
  background: var(--brand-primary);
  color: var(--ink-950);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.map-overlay-card .btn-directions:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: var(--ink-950);
  box-shadow: 0 4px 12px rgba(153, 227, 56, 0.35);
}

@media (max-width: 575.98px) {
  .map-container {
    display: flex;
    flex-direction: column;
  }

  .map-overlay-card {
    position: static;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    padding: 1.5rem;
  }

  .map-container iframe {
    height: 300px;
  }
}

.map-placeholder {
  background:
    linear-gradient(rgba(245, 246, 240, .75), rgba(245, 246, 240, .75)),
    repeating-linear-gradient(0deg, #d9dfcd 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, #d9dfcd 0 1px, transparent 1px 40px);
  min-height: 220px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.map-pin {
  position: absolute;
  top: 45%;
  left: 55%;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50% 50% 50% 0;
  background: var(--brand-primary);
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.map-pin i {
  transform: rotate(45deg);
  color: var(--ink-950);
  font-size: .85rem;
}

.map-info-card {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--ink-950);
  color: #fff;
  border-radius: var(--radius-md);
  padding: .85rem 1rem;
  max-width: 210px;
  box-shadow: var(--shadow-lg);
}

.map-info-card h6 {
  font-size: .84rem;
}

.map-info-card p,
.map-info-card .small {
  font-size: .78rem;
}

/* ---------------------------------------------------------------------
   Scroll-reveal animation (IntersectionObserver driven, see js/main.js)
   --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .08s;
}

.reveal-delay-2 {
  transition-delay: .16s;
}

.reveal-delay-3 {
  transition-delay: .24s;
}

.reveal-delay-4 {
  transition-delay: .32s;
}

.reveal-delay-5 {
  transition-delay: .4s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Counters */
.count-up {
  display: inline-block;
}

/* Carousel arrow controls (Services / Case Studies section headers) */
.carousel-arrows {
  display: flex;
  gap: .4rem;
}

.carousel-arrow {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid var(--paper-200);
  background: #fff;
  color: var(--text-on-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  transition: all .2s ease;
}

.bg-ink-950 .carousel-arrow:not(.filled),
.bg-ink-950 .carousel-arrow {
  border-color: var(--ink-700);
  background: transparent;
  color: #fff;
}

.carousel-arrow.filled {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--ink-950);
}

.carousel-arrow:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--ink-950);
}

.scroll-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-bottom: .5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scroll-track::-webkit-scrollbar {
  display: none;
}

.scroll-track>* {
  scroll-snap-align: start;
}

/* Filter pills (Projects page) */
.filter-pill {
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-pill);
  padding: .35rem .85rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-on-light);
  background: #fff;
  transition: all .2s ease;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--ink-950);
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.725rem;
  bottom: 5.25rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--ink-950);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  z-index: 1040;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand-primary-dark);
  color: var(--ink-950);
  transform: translateY(-2px);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: var(--ink-950) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 4px 18px rgba(217, 166, 46, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1050;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  color: var(--ink-950) !important;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 166, 46, 0.6), 0 4px 10px rgba(0, 0, 0, 0.25);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

/* Pulse animation */
.whatsapp-float::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid rgba(217, 166, 46, 0.65);
  animation: wa-pulse 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  65% {
    transform: scale(1.35);
    opacity: 0;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* Tooltip */
.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--ink-950, #0a0d08);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.42rem 0.9rem;
  border-radius: 2rem;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--ink-950, #0a0d08);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 576px) {
  .whatsapp-float {
    width: 3.1rem;
    height: 3.1rem;
    font-size: 1.65rem;
    right: 1rem;
    bottom: 1rem;
    color: var(--ink-950) !important;
  }

  .back-to-top {
    right: 1.35rem;
    bottom: 4.85rem;
    width: 2.25rem;
    height: 2.25rem;
  }

  .whatsapp-tooltip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before {
    animation: none;
  }

  .whatsapp-float {
    transition: none;
  }
}

/* Mobile nav offcanvas tweaks */
.offcanvas.bg-ink-950 .btn-close {
  filter: invert(1);
}

.offcanvas-header {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================================================
   Service Catalog & Detail Pages
   ========================================================================= */

/* Service Catalog Cards (services.html) */
.service-catalog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--paper-200);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-catalog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.service-catalog-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--ink-900);
}

.service-catalog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-catalog-card:hover .service-catalog-media img {
  transform: scale(1.05);
}

.service-badge-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(10, 13, 8, 0.85);
  backdrop-filter: blur(8px);
  color: var(--brand-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(166, 226, 46, 0.3);
}

.service-catalog-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-catalog-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.service-catalog-title a {
  color: var(--text-on-light);
  transition: color 0.2s ease;
}

.service-catalog-title a:hover {
  color: var(--brand-primary-dark);
}

.service-catalog-desc {
  color: var(--text-on-light-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-catalog-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.service-catalog-highlights li {
  font-size: 0.82rem;
  color: var(--text-on-light);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-catalog-highlights li i {
  color: var(--brand-primary-dark);
  font-size: 0.9rem;
}

.service-catalog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--paper-200);
  gap: 0.5rem;
}

/* Dedicated Service Page Header & Layout */
.service-hero {
  background: var(--ink-950);
  color: #fff;
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .service-hero {
    padding: 3rem 0 2.5rem;
  }
}

@media (max-width: 767.98px) {
  .service-hero {
    padding: 2.25rem 0 2rem;
  }
}

@media (max-width: 575.98px) {
  .service-hero {
    padding: 2rem 0 1.75rem;
  }
}

.service-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(166, 226, 46, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.service-hero-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(166, 226, 46, 0.2);
  position: relative;
}

@media (max-width: 991.98px) {
  .service-hero-img-wrap {
    margin-top: 2rem;
  }
}

.service-hero-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Metric Ribbon */
.metric-ribbon {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--paper-200);
  padding: 1.25rem;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

@media (max-width: 767.98px) {
  .metric-ribbon {
    margin-top: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 1rem 0.75rem;
  }
}

.metric-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
}

@media (max-width: 767.98px) {
  .metric-pill {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--paper-200);
  }

  .metric-pill:last-of-type {
    border-bottom: none;
  }

  /* Remove Bootstrap border-start-md dividers on mobile */
  .border-start-md {
    border-left: none !important;
  }
}

@media (min-width: 768px) {
  .border-start-md {
    border-left: 1px solid var(--paper-200) !important;
  }
}

.metric-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--brand-primary-tint);
  color: var(--brand-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.metric-value {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--ink-950);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-on-light-muted);
  font-weight: 500;
}

/* Deliverables & Feature Cards */
.service-feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--paper-200);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary);
}

.service-feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--brand-primary-tint);
  color: var(--brand-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

/* Process Timeline Steps */
.process-step {
  display: flex;
  gap: 1.25rem;
  position: relative;
  padding-bottom: 2rem;
}

.process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.4rem;
  top: 3rem;
  bottom: 0;
  width: 2px;
  background: var(--paper-200);
}

.process-step-num {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--brand-primary);
  font-weight: 800;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  border: 2px solid var(--brand-primary);
}

.process-step-content {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--paper-200);
  box-shadow: var(--shadow-sm);
  flex-grow: 1;
}

/* Service Sidebar */
.service-sidebar-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--paper-200);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.service-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-nav-list li {
  margin-bottom: 0.5rem;
}

.service-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-on-light);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--paper-50);
  transition: all 0.2s ease;
}

.service-nav-list a:hover,
.service-nav-list a.active {
  background: var(--brand-primary);
  color: var(--ink-950);
}

/* =========================================================================
   GLOBAL MOBILE RESPONSIVE OVERRIDES
   Applied last so they take precedence across all components
   ========================================================================= */

/* --- Tablet & below (< 992px) --- */
@media (max-width: 991.98px) {

  /* Service content sidebar reorders to bottom on mobile */
  .service-sidebar {
    order: 10;
    margin-top: 2rem;
  }

  /* CTA band full-width stacking */
  .cta-band {
    padding: 1.75rem 1.25rem;
    text-align: center;
  }

  .cta-band-img {
    height: 100px;
  }

  /* Stats band */
  .stats-band {
    padding: 2.5rem 0;
  }

  .stat-item .stat-value {
    font-size: 1.45rem;
  }

  /* Savings calculator */
  #savings-calculator {
    padding: 2.5rem 0;
  }

  /* Approach steps — allow 2-column wrap on tablet */
  .approach-step {
    flex: 1 1 45%;
  }
}

/* --- Mobile (< 768px) --- */
@media (max-width: 767.98px) {

  /* Typography scale-down */
  h1 {
    font-size: clamp(1.45rem, 5vw, 1.8rem);
  }

  h2 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }

  h3 {
    font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  }

  /* Approach steps — single column on mobile */
  .approach-step {
    flex: 1 1 100%;
    text-align: left;
  }

  .approach-steps {
    gap: 1rem;
  }

  /* Case cards horizontal scroll track — shrink minimum card width */
  .scroll-track>.case-card {
    min-width: 80vw;
  }

  .scroll-track>.service-card {
    min-width: 78vw;
  }

  /* Service catalog body padding */
  .service-catalog-body {
    padding: 1.25rem;
  }

  .service-catalog-media {
    height: 180px;
  }

  /* Process steps narrower gap */
  .process-step {
    gap: 0.85rem;
  }

  .process-step-content {
    padding: 1rem 1.15rem;
  }

  /* Stats band single row scroll */
  .stats-band {
    padding: 2rem 0;
  }

  .stat-item .stat-value {
    font-size: 1.35rem;
  }

  .stat-item .stat-label {
    font-size: .72rem;
  }

  /* Savings calculator */
  #savings-calculator {
    padding: 2rem 0;
  }

  /* Impact card max-width full on mobile */
  .impact-card {
    max-width: 100%;
    margin: 1.5rem auto 0;
  }

  /* CTA band */
  .cta-band {
    border-radius: 14px;
    padding: 1.5rem 1rem;
  }

  .cta-band .cta-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  /* Footer spacing */
  .site-footer {
    padding: 2rem 0 1rem;
  }

  /* Page hero image hidden below md */
  .page-hero-img {
    display: none;
  }

  /* Service feature card padding */
  .service-feature-card {
    padding: 1.25rem;
  }

  /* Map overlay card full width */
  .map-overlay-card {
    position: static;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
  }
}

/* --- Small mobile (< 576px) --- */
@media (max-width: 575.98px) {

  /* Navbar brand + toggle layout */
  .site-header .navbar.container-xl {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .navbar-brand-logo {
    flex-shrink: 0;
  }

  /* Hero section tweaks */
  .hero-title {
    font-size: clamp(1.5rem, 7vw, 1.9rem);
  }

  .hero-section .d-flex.gap-3 {
    gap: 0.65rem !important;
  }

  .hero-section .btn {
    font-size: .82rem;
    padding: .45rem 1rem;
  }

  /* Trust strip two-column to single */
  .trust-strip .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Impact stats even smaller text */
  .impact-stat .value {
    font-size: 1.15rem;
  }

  .impact-stat .label {
    font-size: .62rem;
  }

  /* Pillar cards — full width */
  .pillar-card {
    padding: 1rem 1rem 2rem;
  }

  /* Service cards scroll track */
  .scroll-track>.service-card {
    min-width: 88vw;
  }

  .scroll-track>.case-card {
    min-width: 88vw;
  }

  /* Buttons in hero and sections */
  .btn-brand,
  .btn-outline-light-custom {
    font-size: .82rem;
    padding: .45rem .95rem;
  }

  /* Service hero breadcrumb */
  .service-hero .small {
    font-size: .75rem;
  }

  /* Metric ribbon stacks fully */
  .metric-ribbon .col-md-4 {
    padding-top: 0;
    padding-bottom: 0;
  }

  /* Footer grid single-column */
  .site-footer .col-md-4,
  .site-footer .col-md-3,
  .site-footer .col-md-2 {
    margin-bottom: 1.25rem;
  }

  /* Service nav list always visible on small screens, remove sidebar look */
  .service-sidebar-card {
    padding: 1rem;
  }
}

/* =========================================================================
   CLIENTS SCROLLING LOGO MARQUEE
   ========================================================================= */
.clients-marquee-section {
  position: relative;
  background: var(--ink-950);
  border-top: 1px solid var(--ink-700);
  border-bottom: 1px solid var(--ink-700);
  padding: 2.25rem 0;
  overflow: hidden;
  z-index: 2;
}

.clients-marquee-header {
  margin-bottom: 1.25rem;
}

.clients-marquee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: rgba(166, 226, 46, 0.08);
  border: 1px solid rgba(166, 226, 46, 0.22);
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

.clients-marquee-subtitle {
  color: var(--text-on-dark-muted);
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0 auto;
  max-width: 680px;
}

.clients-marquee-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0.5rem 0;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.clients-marquee-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  animation: clientMarqueeScroll 42s linear infinite;
  will-change: transform;
}

.clients-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes clientMarqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.client-logo-card {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: all 0.28s ease;
  user-select: none;
  cursor: default;
  flex-shrink: 0;
}

.client-logo-card:hover {
  background: rgba(166, 226, 46, 0.08);
  border-color: rgba(166, 226, 46, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(166, 226, 46, 0.12);
}

.client-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--brand-primary);
  flex-shrink: 0;
  transition: all 0.28s ease;
}

.client-logo-card:hover .client-logo-icon {
  background: rgba(166, 226, 46, 0.18);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.client-logo-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.client-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.client-logo-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
  transition: color 0.28s ease;
}

.client-logo-card:hover .client-logo-name {
  color: #ffffff;
}

.client-logo-sector {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-muted);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .clients-marquee-track {
    animation: none;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: thin;
  }
}

/* Mobile adjustments */
@media (max-width: 575.98px) {
  .clients-marquee-section {
    padding: 1.75rem 0;
  }

  .clients-marquee-subtitle {
    font-size: 0.8rem;
    padding: 0 0.5rem;
  }

  .client-logo-card {
    padding: 0.5rem 0.95rem;
    gap: 0.65rem;
  }

  .client-logo-icon {
    width: 32px;
    height: 32px;
  }

  .client-logo-icon svg {
    width: 16px;
    height: 16px;
  }

  .client-logo-name {
    font-size: 0.82rem;
  }

  .client-logo-sector {
    font-size: 0.62rem;
  }
}