/* ==========================================================================
   XELVORIX GLOBAL — Base Stylesheet (shared across all pages)
   ========================================================================== */

:root {
  --dark-green: #173526;
  --deep-green: #10281d;
  --green: #294b38;
  --light-green: #e7eee7;
  --cream: #f7f5ef;
  --warm-white: #fbfaf7;
  --white: #ffffff;
  --black: #18201d;
  --muted: #6f756f;
  --border: #dedfd9;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --sp-1: 8px;
  --sp-2: 12px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 80px;
  --sp-9: 120px;

  --shadow-soft: 0 10px 30px rgba(20, 35, 25, 0.06);
  --shadow-med: 0 16px 40px rgba(20, 35, 25, 0.10);

  --content-max: 1380px;
  --transition: 0.28s ease;
  --header-h: 66px;

  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); overflow-x: hidden; width: 100%; max-width: 100%; margin: 0; padding: 0; scrollbar-gutter: stable; }
body {
  font-family: var(--font-main);
  color: var(--black);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
svg { display: block; }

.container { max-width: var(--content-max); margin: 0 auto; padding: 0 40px; }
section { position: relative; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; color: var(--black); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #18201d; 
}

.section-heading { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.1; font-weight: 700; }
.section-body { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 23px; border-radius: 10px; font-weight: 600; font-size: 14.5px;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--dark-green); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-med); background: var(--deep-green); }
.btn-outline { background: var(--white); color: var(--black); border: 1px solid var(--border); }
.btn-outline:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft);border-color: rgba(255, 255, 255, 0.35); }
.btn-light { background: var(--light-green); color: var(--dark-green); }
.btn-light:hover { background: var(--white); transform: translateY(-2px); }
.btn-white-on-green { background: var(--white); color: var(--dark-green); }
.btn-white-on-green:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px;
}

/* ---------- One-viewport sections ---------- */
.viewport-section {
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
/* Header is sticky, so it overlays the top of whichever section is in
   view; each section still occupies exactly one full viewport of scroll. */
.viewport-section > .container { width: 100%; max-height: 100%; }

.bg-alt-1 { background: var(--cream); }
.bg-alt-2 { background: var(--light-green); position: relative; }
.bg-alt-2::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=1600&q=60");
  background-size: cover; background-position: center; opacity: 0.05; pointer-events: none;
}
.bg-alt-2 > .container { position: relative; z-index: 1; }

/* ---------- Reveal on scroll (fallback for no-JS / reduced motion) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(23, 53, 38, 0.96);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}
/* Header is fixed/overlaid, so page content needs the space back... */
main { padding-top: var(--header-h); }
/* ...except the hero/page-hero, which is pulled back up to the true top of
   the viewport so its background sits *behind* the (transparent) header
   instead of leaving a gap above it. */
.hero.viewport-section,
.page-hero.viewport-section {
  margin-top: calc(-1 * var(--header-h));
  height: 100vh; height: 100svh;
  min-height: 100vh; min-height: 100svh;
  max-height: 100vh; max-height: 100svh;
}
.page-hero.viewport-section {
  display: flex;
  align-items: center;
}
.hero-grid { padding-top: var(--header-h); }
.page-hero .container { padding-top: var(--header-h); }
.site-header.is-scrolled {
  background: rgba(23, 53, 38, 0.98);
  box-shadow: 0 4px 20px rgba(20,35,25,.16);
  border-bottom-color: rgba(255,255,255,.08);
}
.site-header.is-hero {
  background: transparent;
  box-shadow: none;
  border-bottom-color: transparent;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; position: relative; z-index: 500; }

.logo { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-img { height: 65px; width: auto; display: block; flex-shrink: 0;  }
.site-header .logo-img { height: 65px; width: auto; display: block; flex-shrink: 0;  }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: flex; align-items: center; padding: 10px 16px; font-size: 14.5px; font-weight: 500;
  color: var(--cream); border-radius: 8px; transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link.is-active {
  background: rgba(247, 245, 239, 0.12);
  color: var(--white);
}
.site-header.is-hero .nav-link { color: var(--cream); }
.site-header.is-hero .nav-link:hover,
.site-header.is-hero .nav-link.is-active { background: rgba(247, 245, 239, 0.14); color: var(--white); }

.header-cta {
  align-self: center !important;
  margin: auto 0 !important;
  transform: translateZ(0) !important; /* Force hardware acceleration to prevent jumping */
  flex-shrink: 0;
  background: rgba(247, 245, 239, 0.12);
  color: var(--cream);
  border: 1px solid rgba(247, 245, 239, 0.16);
}
.header-cta:hover {
  transform: translateY(-2px) translateZ(0) !important;
  background: rgba(247, 245, 239, 0.2);
  color: var(--white);
}
.header-cta svg path { stroke: currentColor; }
.site-header.is-hero .header-cta {
  background: rgba(247, 245, 239, 0.08);
  color: var(--cream);
  border-color: rgba(247, 245, 239, 0.2);
}

.hamburger {
  display: none; width: 42px; height: 42px; border-radius: 8px;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--cream); position: relative; transition: background var(--transition); }
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--cream);
  transition: transform var(--transition), top var(--transition);
}
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }
.hamburger.is-active span { background: transparent; }
.hamburger.is-active span::before { top: 0; transform: rotate(45deg); }
.hamburger.is-active span::after { top: 0; transform: rotate(-45deg); }
.site-header.is-hero .hamburger span,
.site-header.is-hero .hamburger span::before,
.site-header.is-hero .hamburger span::after { background: var(--cream); }

.mobile-nav {
  visibility: hidden; opacity: 0; transform: translateX(100%);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
  position: fixed; inset: 0 0 0 0;
  background: var(--deep-green); z-index: 480; 
  padding: calc(var(--header-h) + 20px) 20px 20px 20px; 
  overflow-y: auto;
}
.mobile-nav.is-open { 
  visibility: visible; opacity: 1; transform: translateX(0);
}

.site-header.is-nav-open {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom-color: transparent !important;
}
.site-header.is-nav-open .logo-img { height: 50px; width: auto; display: block; flex-shrink: 0; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.site-header.is-nav-open .hamburger span { background: transparent !important; }
.site-header.is-nav-open .hamburger span::before,
.site-header.is-nav-open .hamburger span::after { background: #fbfaf7 !important; }
.site-header.is-nav-open .header-cta {
  background: var(--dark-green) !important;
  color: var(--white) !important;
  border-color: var(--dark-green) !important;
}
.site-header.is-nav-open .header-cta svg path { stroke: var(--white) !important; }

.mobile-nav a:not(.btn) {
  display: block; padding: 16px 4px; font-weight: 600; font-size: 17px;
  border-bottom: 1px solid var(--border); color: var(--warm-white);
}
.mobile-nav .btn { width: 100%; margin-top: 20px; display: flex; justify-content: center; }

.mobile-nav-has-dropdown { position: relative; border-bottom: 1px solid var(--border); }
.mobile-nav-has-dropdown > a { border-bottom: none; padding-right: 60px; }
.mobile-nav-has-dropdown .mobile-dropdown summary {
  position: absolute; top: 0; right: 0; width: 56px; height: 56px;
  border-bottom: none; padding: 0; display: flex; justify-content: center; align-items: center;
  cursor: pointer; list-style: none; color:#fbfaf7;
}
.mobile-nav-has-dropdown .mobile-dropdown summary::-webkit-details-marker { display: none; }
.mobile-nav-has-dropdown .mobile-dropdown summary svg { width: 18px; height: 18px; transition: transform var(--transition); }
.mobile-nav-has-dropdown .mobile-dropdown[open] summary svg { transform: rotate(180deg); }

.mobile-mega-menu {
  padding: 12px 14px 20px; background: rgba(41, 75, 56, 0.04);
  border-radius: var(--r-md); margin-top: 10px;
}
.mobile-mega-menu h4 {
  font-size: 14px; color: var(--dark-green); margin: 18px 0 8px;
  border-bottom: 1px solid rgba(0,0,0,0.06); padding-bottom: 6px;
}
.mobile-mega-menu h4:first-child { margin-top: 4px; }
.mobile-mega-menu a {
  padding: 8px 12px; font-size: 14px; font-weight: 500;
  border-bottom: none; color: var(--muted);
}
.mobile-mega-menu h4 a {
  font-weight: 700;
  color: inherit;
  font-size: inherit;
  padding: 0;
}
.mobile-mega-menu a:hover { color: var(--green); }

@media (max-width: 980px) {
  .main-nav, .header-cta { align-self: center; display: none; }
  .hamburger { display: flex; }
}

/* --- Mega Menu --- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-dropdown-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform var(--transition);
}
.nav-dropdown:hover .nav-dropdown-icon {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 940px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-med);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  z-index: 500;
  border: 1px solid var(--border);
  cursor: default;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 24px;
}

.nav-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(14px);
}

.mega-col h4 {
  font-size: 14.5px;
  color: var(--dark-green);
  margin-bottom: 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.mega-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mega-col a {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  transition: color var(--transition), padding-left var(--transition);
}
.mega-col h4 a {
  font-weight: 700;
  color: inherit;
  font-size: inherit;
}
.mega-col a:hover {
  color: var(--green);
  padding-left: 4px;
}

@media (max-width: 980px) {
  .mega-menu {
    display: none;
  }
}

/* ==========================================================================
   PAGE HERO (used by inner pages)
   ========================================================================== */
.page-hero { position: relative; color: var(--white); overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16,28,20,.9) 0%, rgba(16,28,20,.72) 45%, rgba(16,28,20,.45) 75%, rgba(16,28,20,.62) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: #9fe0b8; }
.page-hero .eyebrow::before { background: #9fe0b8; }
.page-hero h1 { color: var(--white); font-size: clamp(32px, 4.6vw, 58px); line-height: 1.08; max-width: 18ch; }
.page-hero p { color: rgba(255,255,255,.82); margin-top: 18px; max-width: 52ch; font-size: 16.5px; line-height: 1.6; }
.page-hero .hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--dark-green); color: rgba(255,255,255,.85); padding: var(--sp-8) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: var(--sp-7); }
.footer-brand { text-align: left !important; }
.footer-brand .logo-img { margin-bottom: 18px; display: block; margin-left: 0 !important; margin-right: auto !important; }
.footer-brand p { font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,.62); max-width: 30ch; text-align: left; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: background var(--transition);
}
.footer-social a:hover { background: rgba(255,255,255,.2); }
.footer-social svg { width: 15px; height: 15px; stroke: var(--white); }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,.68); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: rgba(255,255,255,.68); margin-bottom: 4px; }
.footer-contact svg { width: 16px; height: 16px; stroke: var(--light-green); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex;
  justify-content: space-between; align-items: center; font-size: 13.5px; color: rgba(255,255,255,.55); flex-wrap: wrap; gap: 12px;
}
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a:hover { color: var(--white); }

.scroll-to-top-btn {
  position: fixed; right: 24px; bottom: 24px; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: var(--dark-green); color: var(--white);
  border-radius: 50%; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-med);
  transition: opacity var(--transition), transform var(--transition);
  opacity: 0; pointer-events: none; transform: translateY(20px); border: none; cursor: pointer;
}
.scroll-to-top-btn.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-to-top-btn:hover { transform: translateY(-3px); }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .container { padding: 0 22px; }
}

/* ==========================================================================
   SHARED SUB-PAGE COMPONENTS (services / industries / about / contact)
   ========================================================================== */
.split-block { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: center; }
.split-block img { width: 100%; height: 100%; max-height: 46vh; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; border-radius: var(--r-xl); }
.split-block.reverse .split-media { order: 2; }
.split-block ul.checklist { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.split-block ul.checklist li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; }
.check-circle { width: 22px; height: 22px; border-radius: 50%; background: var(--dark-green); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.simple-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.info-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px 20px; height: 100%; display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-med); }
.info-card .ic-media { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 14px; }
.info-card .ic-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.info-card .ic-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--light-green);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.info-card .ic-icon svg { width: 18px; height: 18px; stroke: var(--dark-green); }
.info-card h3 { font-size: 16px; margin-bottom: 6px; }
.info-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; flex: 1; }

.team-card { text-align: center; }
.team-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; border-radius: var(--r-lg); margin-bottom: 12px; }
.team-card h4 { font-size: 15px; }
.team-card span { font-size: 12.5px; color: var(--muted); }

.stat-strip-alt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-strip-alt .ssa-num { font-size: clamp(24px, 2.6vw, 38px); font-weight: 800; color: var(--dark-green); }
.stat-strip-alt .ssa-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

.cta-band { position: relative; color: var(--white); overflow: hidden; }
.cta-band-bg { position: absolute; inset: 0; z-index: 0; }
.cta-band-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cta-band-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(16,28,20,.92), rgba(16,40,29,.75)); }
.cta-band .container { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 44px); max-width: 20ch; margin: 0 auto 16px; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 52ch; margin: 0 auto 26px; }
.cta-band .hero-ctas { justify-content: center; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--sp-6); align-items: start; }
.contact-info-card { background: var(--dark-green); color: var(--white); border-radius: var(--r-xl); padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; }
.contact-info-card h3 { color: var(--white); font-size: 18px; }
.contact-info-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.contact-info-row svg { width: 17px; height: 17px; stroke: #9fe0b8; flex-shrink: 0; margin-top: 2px; }
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10%;}
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--border);
  font-family: inherit; font-size: 14px; background: var(--warm-white);
}
.contact-form textarea { min-height: 70px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--green); outline-offset: 1px; }

.offices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.office-card { border-radius: var(--r-lg); overflow: hidden; position: relative; height: 100%; min-height: 160px; }
.office-card { aspect-ratio: 1 / 1; }
.office-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; position: absolute; inset: 0; }
.office-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,28,20,0) 40%, rgba(16,28,20,.85) 100%); }
.office-card-label { position: absolute; left: 14px; bottom: 12px; z-index: 1; color: var(--white); }
.office-card-label strong { display: block; font-size: 15px; }
.office-card-label span { font-size: 12px; color: rgba(255,255,255,.75); }

.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 20px 22px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-med);
  border-color: var(--dark-green);
}
.process-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: 34px; font-weight: 800; color: var(--light-green); display: block; margin-bottom: 6px; transition: color var(--transition); }
.process-step:hover::before { color: var(--dark-green); }
.process-step h4 { font-size: 15.5px; margin-bottom: 6px; }
.process-step p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.tag-pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag-pill { background: var(--light-green); color: var(--dark-green); font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; }

.section-label-row { 
  display: flex; 
  flex-direction: column; 
  align-items: flex-start; 
  gap: 16px; 
  margin-bottom: var(--sp-4); 
}
@media (min-width: 768px) {
  .section-label-row { 
    flex-direction: row; 
    align-items: flex-end; 
    justify-content: space-between; 
    gap: 20px; 
  }
}

/* ---------- Carousel arrows (shared by every card marquee) ---------- */
.carousel-arrows { display: flex; gap: 10px; flex-shrink: 0; }
.carousel-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}
.carousel-arrow:hover { background: var(--dark-green); border-color: var(--dark-green); transform: translateY(-2px); }
.carousel-arrow svg { width: 16px; height: 16px; stroke: var(--black); transition: stroke var(--transition); }
.carousel-arrow:hover svg { stroke: var(--white); }

/* ---------- Card marquee ----------
   A row of cards that never overflows its section: only ~3 stay visible,
   the rest auto-scroll through in an infinite loop (paused on hover) and
   can also be nudged with the .carousel-arrow buttons above it. */
.marquee-viewport { 
  overflow: hidden; 
  width: 100%; 
  border-radius: var(--r-lg);
}
.marquee-track { 
  display: flex; 
  gap: 18px; 
  width: max-content;
}
.marquee-track > * { flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) {
  .marquee-viewport { overflow-x: auto; }
  .marquee-track { transform: none !important; }
}
@media (max-width: 767px) {
  .marquee-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .marquee-viewport::-webkit-scrollbar { display: none; }
}

@media (max-width: 1023px) {
  .split-block { grid-template-columns: 1fr; }
  .split-block img { max-height: 26vh; }
  .simple-grid { grid-template-columns: repeat(2, 1fr); }
  /* .stat-strip-alt { grid-template-columns: repeat(2, 1fr); } */
  .contact-grid { grid-template-columns: 1fr; }
  .offices-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .viewport-section { 
    height: auto; 
    min-height: auto; 
    max-height: none; 
    overflow: visible; 
    padding: var(--sp-8) 0;
  }
  .hero.viewport-section,
  .page-hero.viewport-section {
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
  }
}
@media (max-width: 640px) {
  .simple-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .offices-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}
