/* variables.css */
:root {
  /* ── Backgrounds ── */
  --color-bg:           #F7F6F2;   /* warm off-white — not sterile, has warmth */
  --color-bg-alt:       #EEECEA;   /* alternate section bg */
  --color-surface:      #FFFFFF;   /* cards / elevated surfaces */
  --color-surface-2:    #F2F1ED;   /* hover surface */

  /* ── Brand green ── */
  --color-accent:       #00A86B;   /* primary green — buttons, badges, decorative */
  --color-accent-dark:  #007844;   /* text on light bg — better contrast */
  --color-accent-deep:  #005330;   /* body-size accent text */
  --color-accent-dim:   rgba(0, 168, 107, 0.10);  /* tinted fills */
  --color-accent-glow:  rgba(0, 168, 107, 0.18);

  /* ── Typography ── */
  --color-text:         #111210;   /* near-black, slight warmth */
  --color-text-muted:   #5D635A;   /* subdued body text; AA on light/tinted surfaces */
  --color-text-faint:   #A8AFA8;   /* dividers, placeholders, captions */

  /* ── Glass / surfaces ── */
  --color-glass:        rgba(255, 255, 255, 0.72);
  --color-glass-hover:  rgba(255, 255, 255, 0.92);
  --color-glass-border: rgba(0, 0, 0, 0.08);
  --color-glass-border-hover: rgba(0, 120, 68, 0.36);

  /* ── Fonts ── */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* ── Shadows (lighter — light mode) ── */
  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md:     0 8px 24px rgba(0, 0, 0, 0.09);
  --shadow-lg:     0 24px 56px rgba(0, 0, 0, 0.13);
  --shadow-green:  0 0 32px rgba(0, 168, 107, 0.16);
  --shadow-green-strong: 0 0 64px rgba(0, 168, 107, 0.22);

  /* ── Borders ── */
  --border-subtle:  1px solid rgba(0, 0, 0, 0.08);
  --border-green:   1px solid rgba(0, 0, 0, 0.15);
  --border-green-hover: 1px solid var(--color-accent-dark);

  /* ── Radii ── */
  --radius-sm:  4px;
  --radius-md:  10px;
  --radius-lg:  18px;
  --radius-xl:  28px;

  /* ── Transitions ── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-enter:  650ms var(--ease-out-expo);

  /* ── Z-index ── */
  --z-navbar:  100;
}

/* base.css */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(0, 217, 126, 0.18),
    0 0 0 1px rgba(15, 15, 14, 0.16);
}

a:focus-visible {
  border-radius: 999px;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--transition-enter),
              transform var(--transition-enter);
}

.animations-ready .reveal {
  opacity: 0;
  transform: translateY(36px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 1;
  transform: translateX(0);
  transition: opacity var(--transition-enter),
              transform var(--transition-enter);
}

.animations-ready .reveal-left {
  opacity: 0;
  transform: translateX(-36px);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 1;
  transform: translateX(0);
  transition: opacity var(--transition-enter),
              transform var(--transition-enter);
}

.animations-ready .reveal-right {
  opacity: 0;
  transform: translateX(36px);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }
.delay-5 { transition-delay: 400ms; }

/* Large translateY reveal — for big display headings */
.reveal-up-lg {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1),
              transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.animations-ready .reveal-up-lg {
  opacity: 0;
  transform: translateY(64px);
}
.reveal-up-lg.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-up-lg,
  .animations-ready .reveal,
  .animations-ready .reveal-left,
  .animations-ready .reveal-right,
  .animations-ready .reveal-up-lg {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.875rem;
  background: var(--color-accent);
  color: #062211;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  border: none;
  transition: background var(--transition-base),
              transform var(--transition-base),
              box-shadow var(--transition-base);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 168, 107, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.875rem;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base),
              color var(--transition-base),
              background var(--transition-base);
}

.btn-ghost:hover {
  border-color: var(--color-accent-dark);
  color: var(--color-accent-dark);
  background: rgba(0, 168, 107, 0.07);
}

.btn-ghost:active {
  background: rgba(0, 168, 107, 0.12);
}

/* ── Section label pill ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.875rem;
  background: rgba(0, 168, 107, 0.08);
  border: 1px solid rgba(0, 120, 68, 0.20);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

.section-label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 6px var(--color-accent);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2.5rem; }
}

@media (min-width: 1280px) {
  .container { padding: 0 3rem; }
}

/* ── WhatsApp FAB ── */
.whatsapp-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.35), 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 280ms cubic-bezier(0.16,1,0.3,1),
              box-shadow 280ms ease;
  cursor: pointer;
}

.whatsapp-fab:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 32px rgba(37,211,102,0.45), 0 4px 12px rgba(0,0,0,0.18);
}

.whatsapp-fab:active {
  transform: scale(0.96);
}

.whatsapp-fab svg {
  display: block;
}

@media (max-width: 768px) {
  .whatsapp-fab {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }
}

/* ── Scroll-to-top FAB ─────────────────────────────────────────────────── */
.scroll-top-fab {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.7);
  color: #0F0F0E;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.88);
  transition: opacity 320ms cubic-bezier(0.16,1,0.3,1),
              transform 320ms cubic-bezier(0.16,1,0.3,1),
              box-shadow 240ms ease;
}

.scroll-top-fab.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top-fab:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 28px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.09), inset 0 1px 0 rgba(255,255,255,0.8);
}

.scroll-top-fab:active {
  transform: scale(0.94);
}

@media (max-width: 768px) {
  .scroll-top-fab {
    bottom: 1.25rem;
    left: 1.25rem;
    width: 46px;
    height: 46px;
  }
}

/* ── Frosted pill breadcrumb (shared across pages) ─────────── */
.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.25rem;
}
.page-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.page-breadcrumb__list li { display: flex; align-items: center; }
.page-breadcrumb__list [aria-hidden="true"] {
  color: rgba(255,255,255,0.25);
  font-size: 0.65rem;
  line-height: 1;
}
.page-breadcrumb a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 150ms ease;
}
.page-breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.page-breadcrumb [aria-current="page"] {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}
/* Light bg variant */
.page-breadcrumb--light {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.10);
}
.page-breadcrumb--light .page-breadcrumb__list [aria-hidden="true"] { color: rgba(0,0,0,0.25); }
.page-breadcrumb--light a { color: rgba(0,0,0,0.45); }
.page-breadcrumb--light a:hover { color: rgba(0,0,0,0.85); }
.page-breadcrumb--light [aria-current="page"] { color: rgba(0,0,0,0.70); }

/* navbar.css */
/* ========================
   NAVBAR — Floating Pill (Light Mode)
   ======================== */

/*
  Floating pill, centered.
  Light mode: white frosted glass, dark text, green active/hover states.
  Contracts on scroll-down, expands on scroll-up.
*/

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  display: flex;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  pointer-events: none;
  transition: padding 500ms var(--ease-out-expo);
}

.navbar.scrolled {
  padding: 0.75rem 1.5rem;
}

/* ── The pill itself ── */
.navbar__pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: all;
  position: relative;

  width: calc(100% - 1rem);
  max-width: clamp(780px, 88vw, 1260px);
  padding: 0.65rem 0.65rem 0.65rem 1.5rem;

  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);

  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;

  box-shadow:
    0 4px 32px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 -1px 0 rgba(0, 0, 0, 0.03) inset;

  transition:
    max-width       550ms var(--ease-out-expo),
    padding         500ms var(--ease-out-expo),
    background      400ms ease,
    border-color    400ms ease,
    box-shadow      400ms ease;
}

/* Top-edge shimmer — white → green → white */
.navbar__pill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 25%,
    rgba(0, 168, 107, 0.45) 50%,
    rgba(0, 0, 0, 0.08) 75%,
    transparent 100%
  );
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 400ms ease, left 550ms var(--ease-out-expo), right 550ms var(--ease-out-expo);
}

/* Contracted state */
.navbar.scrolled .navbar__pill {
  max-width: 1050px;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.60);
  box-shadow:
    0 8px 36px rgba(0, 0, 0, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.80) inset;
}

.navbar.scrolled .navbar__pill::after {
  left: 18%;
  right: 18%;
  opacity: 1;
}

/* ── Over-dark section: invert to light text + dark glass ── */
.navbar.over-dark .navbar__pill {
  background: rgba(15, 15, 14, 0.28);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 4px 32px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.10) inset,
    0 -1px 0 rgba(0, 0, 0, 0.12) inset;
}

.navbar.over-dark .navbar__nav a {
  color: rgba(255, 255, 255, 0.70);
}

.navbar.over-dark .navbar__nav a:hover {
  color: #ffffff;
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.42rem;
}

.navbar.over-dark .navbar__nav a.active,
.navbar.over-dark .navbar__nav a.active:hover {
  color: var(--color-accent);
  background: rgba(0, 168, 107, 0.18);
  text-decoration: none;
}

.navbar.over-dark .navbar__hamburger {
  border-color: rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.08);
}

.navbar.over-dark .navbar__hamburger span {
  background: #ffffff;
}

/* Logo swap is handled in JS (src attribute) */

/* ── Logo ── */
.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar__logo-img {
  width: auto;
  height: 36px;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  display: block;
  transition: height 500ms var(--ease-out-expo), opacity 200ms ease;
}

.navbar__logo:hover .navbar__logo-img {
  opacity: 0.75;
}

.navbar.scrolled .navbar__logo-img {
  height: 28px;
}

/* ── Desktop nav ── */
.navbar__nav {
  display: none;
  flex: 1;
  justify-content: center;
}

@media (min-width: 1024px) {
  .navbar__nav {
    display: flex;
    align-items: center;
    gap: 0.125rem;
  }
}

.navbar__nav a,
.navbar__services-trigger {
  padding: 0.4rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 200ms ease, background 200ms ease, text-decoration-color 200ms ease;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.navbar__services {
  display: flex;
  align-items: center;
}

.navbar__nav a:hover,
.navbar__services-trigger:hover,
.navbar__services.open .navbar__services-trigger {
  color: var(--color-text);
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.42rem;
}

.navbar__nav a.active,
.navbar__services-trigger.active,
.navbar__nav a.active:hover,
.navbar__services-trigger.active:hover {
  color: var(--color-accent-dark);
  background: rgba(0, 168, 107, 0.10);
  text-decoration: none;
}

.navbar__services-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.navbar__services-trigger span {
  font-size: 0.75rem;
  transition: transform 180ms ease;
}

.navbar__services.open .navbar__services-trigger span {
  transform: rotate(180deg);
}

.navbar__mega {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  width: min(1180px, calc(100vw - 3rem));
  padding: 1.35rem 1.35rem 0.9rem;
  border: 1px solid rgba(16, 24, 20, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(8, 20, 14, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  color: #141a17;
  max-height: calc(100vh - 7.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.navbar__services.open .navbar__mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.navbar__mega-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.navbar__mega-column {
  min-width: 0;
  padding: 0 0.85rem;
  border-right: 1px solid rgba(16, 24, 20, 0.08);
}

.navbar__mega-column:last-child {
  border-right: 0;
}

.navbar__mega-group + .navbar__mega-group {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 24, 20, 0.08);
}

.navbar__nav .navbar__mega-family {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 2.8em;
  padding: 0;
  border-radius: 0;
  color: #101612;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
  white-space: normal;
}

.navbar__nav .navbar__mega-family:hover {
  color: var(--color-accent-dark);
  background: transparent;
}

.navbar__mega-group ul {
  display: grid;
  gap: 0.12rem;
  margin-top: 0.5rem;
}

.navbar__nav .navbar__mega-group li a {
  display: block;
  padding: 0.36rem 0;
  border-radius: 0;
  color: #58615c;
  font-size: 0.74rem;
  line-height: 1.35;
  white-space: normal;
}

.navbar__nav .navbar__mega-group li a:hover {
  color: #101612;
  background: transparent;
}

.navbar__nav .navbar__mega-all {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.72rem;
  border-top: 1px solid rgba(16, 24, 20, 0.08);
  border-radius: 0;
  color: var(--color-accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.navbar__nav .navbar__mega-all:hover {
  background: rgba(0, 168, 107, 0.06);
}

.navbar.over-dark .navbar__services-trigger {
  color: rgba(255, 255, 255, 0.7);
}

.navbar.over-dark .navbar__services-trigger:hover,
.navbar.over-dark .navbar__services.open .navbar__services-trigger {
  color: #fff;
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.42rem;
}

.navbar.over-dark .navbar__services-trigger.active,
.navbar.over-dark .navbar__services-trigger.active:hover {
  color: var(--color-accent);
  background: rgba(0, 168, 107, 0.18);
  text-decoration: none;
}

.navbar.over-dark .navbar__mega .navbar__mega-family {
  color: #101612;
}

.navbar.over-dark .navbar__mega .navbar__mega-group li a {
  color: #58615c;
}

.navbar.over-dark .navbar__mega .navbar__mega-family:hover,
.navbar.over-dark .navbar__mega .navbar__mega-group li a:hover {
  color: var(--color-accent-dark);
  background: transparent;
}

/* ── CTA ── */
.navbar__cta {
  display: none;
  flex-shrink: 0;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .navbar__cta {
    display: block;
  }
}

.navbar__cta-btn {
  padding: 0.6rem 1.25rem !important;
  font-size: 0.8125rem !important;
  border-radius: 999px !important;
  gap: 0.4rem !important;
  letter-spacing: 0.005em;
  transition:
    background     200ms ease,
    transform      200ms ease,
    box-shadow     200ms ease !important;
}

.navbar__cta-btn:hover {
  transform: scale(1.04) !important;
  box-shadow: 0 0 20px rgba(0, 168, 107, 0.30) !important;
}

/* ── Hamburger ── */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  transition: border-color 200ms ease, background 200ms ease;
}

@media (min-width: 1024px) {
  .navbar__hamburger {
    display: none;
  }
}

.navbar__hamburger:hover {
  border-color: var(--color-accent-dark);
  background: rgba(0, 168, 107, 0.08);
}

.navbar__hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  margin: 0 auto;
  transition:
    transform 300ms var(--ease-out-expo),
    opacity   300ms ease,
    background 200ms ease;
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--color-accent-dark);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--color-accent-dark);
}

/* ── Mobile fullscreen menu (Athos Dark) ── */
.navbar__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 14, 0.95);
  z-index: calc(var(--z-navbar) + 10);
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.navbar__mobile-menu.open {
  display: flex;
}

/* Background blur layer */
.navbar__mobile-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(0, 168, 107, 0.15), transparent 70%);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: -1;
}

/* Internal header (matching original bar logo position) */
.navbar__mobile-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar__mobile-header .navbar__logo {
  display: flex;
  align-items: center;
  min-width: 108px;
  min-height: 44px;
}

.navbar__mobile-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  flex-shrink: 0;
}

.navbar__mobile-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.navbar__mobile-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 2rem;
}

/* Catalog-driven mobile navigation. Services opens one family chooser; a
   family then replaces it with one leaf panel, keeping every service within
   two taps while avoiding nested accordions. */
.navbar__mobile-links {
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.navbar__mobile-link-wrap {
  flex: 0 0 auto;
}

.navbar__mobile-link-wrap > a,
.navbar__mobile-services > summary {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 750;
  color: #fafaf8;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.navbar__mobile-services > summary,
.navbar__mobile-family-choice,
.navbar__mobile-service-back {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.65rem 0;
  cursor: pointer;
  list-style: none;
}

.navbar__mobile-services summary::-webkit-details-marker,
.navbar__mobile-services > summary::marker {
  display: none;
}

.navbar__mobile-services > summary > span {
  color: var(--color-accent);
  transition: transform 180ms ease;
}

.navbar__mobile-services[open] > summary > span {
  transform: rotate(45deg);
}

.navbar__mobile-all-services {
  display: flex !important;
  align-items: center;
  min-height: 44px;
  margin: 0;
  color: var(--color-accent) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
}

.navbar__mobile-service-browser {
  min-height: min(61vh, 31rem);
  margin: 0.15rem 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.navbar__mobile-service-intro,
.navbar__mobile-service-panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.8rem 0.9rem;
  background: #101216;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar__mobile-service-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.navbar__mobile-service-intro p,
.navbar__mobile-service-panel-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar__mobile-families,
.navbar__mobile-service-links {
  display: grid;
  padding: 0.35rem 0.55rem;
}

.navbar__mobile-family-choice {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.91rem;
  font-weight: 650;
}

.navbar__mobile-family-choice > span:last-child {
  color: var(--color-accent);
  font-size: 0.75rem;
  white-space: nowrap;
}

.navbar__mobile-family-choice:last-child,
.navbar__mobile-service-links > a:last-child {
  border-bottom: 0;
}

.navbar__mobile-service-panel {
  max-height: min(61vh, 31rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.navbar__mobile-service-panel[hidden],
.navbar__mobile-service-root[hidden] {
  display: none;
}

.navbar__mobile-service-panel-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
}

.navbar__mobile-service-panel-head h2 {
  margin: 0.12rem 0 0;
  color: #fafaf8;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.15;
}

.navbar__mobile-service-back {
  min-width: 44px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
}

.navbar__mobile-service-back span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.navbar__mobile-service-links > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 550;
  letter-spacing: 0;
  line-height: 1.3;
}

.navbar__mobile-service-links > .navbar__mobile-family-hub {
  color: var(--color-accent);
  font-weight: 650;
}

.navbar__mobile-link-wrap {
  overflow: hidden;
}

.navbar__mobile-menu a {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: #FAFAF8;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-decoration: none;
  opacity: 0;
  transform: translateY(100%);
  transition: color 250ms ease;
}

.navbar__mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
  /* GSAP will handle the staggered animation, but this is a fallback */
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar__mobile-menu a:hover,
.navbar__mobile-menu a.active {
  color: var(--color-accent);
}

/* The legacy `.navbar__mobile-menu a` display rule sits later in this file with
   equal specificity, so the catalog panel links must out-specify it or they
   render at 2.75rem and only three services fit on a phone. */
.navbar__mobile-menu .navbar__mobile-service-links > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  min-height: 44px;
  padding: 0.6rem 0.45rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 550;
  letter-spacing: 0;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.78);
}

.navbar__mobile-menu .navbar__mobile-service-links > a > span {
  flex: 0 0 auto;
  color: var(--color-accent);
  opacity: 0.85;
}

.navbar__mobile-menu .navbar__mobile-service-links > .navbar__mobile-family-hub {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.navbar__mobile-menu .navbar__mobile-all-services {
  font-size: 0.78rem !important;
}

/* Keep nested catalog links compact after the legacy mobile-link defaults. */
.navbar__mobile-menu .navbar__mobile-link-wrap > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* Menu footer/CTA */
.navbar__mobile-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1) 300ms,
              transform 600ms cubic-bezier(0.16, 1, 0.3, 1) 300ms;
}

.navbar__mobile-menu.open .navbar__mobile-footer {
  opacity: 1;
  transform: translateY(0);
}

.navbar__mobile-footer .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 60px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 100px;
  background: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 168, 107, 0.35);
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.navbar__mobile-footer .btn-primary:hover {
  background: #007844;
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(0, 168, 107, 0.45);
}

/* Adjust original hamburger for Z-index when open */
.navbar__hamburger.open {
  z-index: calc(var(--z-navbar) + 20);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
  .navbar__mobile-menu a {
    font-size: 2.25rem;
  }

  .navbar__mobile-menu .navbar__mobile-link-wrap > a {
    font-size: 1.35rem;
  }

  .navbar__mobile-service-browser,
  .navbar__mobile-service-panel {
    min-height: min(58vh, 29rem);
    max-height: min(58vh, 29rem);
  }
}

/* footer.css */
/* ============================================================
   FOOTER & FOOTER CTA — Shared Styles
   SmartR Spaces 2026
   ============================================================ */

.footer__directory {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  margin-top: 2.75rem;
  padding-top: 1.25rem;
}

.footer__directory summary {
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  display: flex;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  justify-content: space-between;
  letter-spacing: 0.02em;
  list-style: none;
  min-height: 44px;
}

.footer__directory summary::-webkit-details-marker { display: none; }

.footer__directory summary span {
  color: var(--color-accent);
  font-size: 1.25rem;
  transition: transform 180ms ease;
}

.footer__directory[open] summary span { transform: rotate(45deg); }

.footer__directory-grid {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 1.75rem 0 1rem;
}

.footer__directory-family h3 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  line-height: 1.4;
  margin: 0 0 0.7rem;
}

.footer__directory-family h3 a { color: #fff; }

.footer__directory-family ul {
  display: grid;
  gap: 0.42rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__directory-family li,
.footer__directory-family a {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.75rem;
  line-height: 1.45;
}

.footer__directory-family a:hover,
.footer__directory-family a:focus-visible { color: #fff; }

@media (max-width: 900px) {
  .footer__directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .footer__directory-grid { grid-template-columns: 1fr; }
}

/* ── PRE-FOOTER CTA ─────────────────────────────────────── */
.footer-cta {
  background: #0D0D0C;
  padding: clamp(5rem, 11vw, 9rem) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0,168,107,0.2);
}

/* Dot grid texture */
.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Green ambient glow */
.footer-cta::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,168,107,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.footer-cta__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Label pill */
.footer-cta__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(0,168,107,0.08);
  border: 1px solid rgba(0,168,107,0.2);
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.footer-cta__label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 6px rgba(0,168,107,0.9);
}

/* Heading */
.footer-cta__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 5.5vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

/* Sub */
.footer-cta__sub {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.48);
  max-width: 44ch;
  margin-bottom: 2.5rem;
}

/* Actions */
.footer-cta__actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-cta__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  padding: 0.875rem 2rem;
  border-radius: 100px;
  transition: background 220ms ease, transform 220ms cubic-bezier(0.16,1,0.3,1), box-shadow 220ms ease;
  box-shadow: 0 4px 20px rgba(0,168,107,0.3);
}

.footer-cta__btn-primary:hover {
  background: #007844;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,168,107,0.42);
}

.footer-cta__btn-primary:active { transform: translateY(0); }

.footer-cta__btn-ghost {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 220ms ease, gap 220ms ease;
}

.footer-cta__btn-ghost:hover {
  color: #FFFFFF;
  gap: 0.625rem;
}

/* Right: Constellation */
.footer-cta__right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-cta__constellation {
  position: relative;
  width: 420px;
  height: 420px;
  flex-shrink: 0;
}

.footer-cta__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Hub */
.footer-cta__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(0,168,107,0.1);
  border: 1px solid rgba(0,168,107,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  text-transform: uppercase;
  z-index: 2;
}

.footer-cta__hub::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(0,168,107,0.12);
  animation: hub-pulse 3s ease-in-out infinite;
}

@keyframes hub-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.4; }
}

/* Tags */
.footer-cta__tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  z-index: 2;
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}

.footer-cta__tag svg {
  color: var(--color-accent);
  opacity: 0.75;
  flex-shrink: 0;
}

.footer-cta__tag:hover {
  border-color: rgba(0,168,107,0.28);
  color: rgba(255,255,255,0.88);
  background: rgba(0,168,107,0.06);
}

/* 8-node octagonal constellation (hub at 210,210 in 420×420) */
.footer-cta__tag--lighting   { top: 49px;  left: 158px; }  /* top */
.footer-cta__tag--climate    { top: 91px;  left: 261px; }  /* top-right */
.footer-cta__tag--security   { top: 194px; left: 303px; }  /* right */
.footer-cta__tag--audio      { top: 297px; left: 261px; }  /* bottom-right */
.footer-cta__tag--networking { top: 339px; left: 158px; }  /* bottom */
.footer-cta__tag--switching  { top: 297px; left: 55px;  }  /* bottom-left */
.footer-cta__tag--video      { top: 194px; left: 13px;  }  /* left */
.footer-cta__tag--access     { top: 91px;  left: 55px;  }  /* top-left */

/* Scroll reveal */
.footer-cta__left  { transition-delay: 0ms; }
.footer-cta__right { transition-delay: 120ms; }

.footer-cta__phone {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-accent);
  transition: color 0.3s ease;
}

.footer-cta__phone:hover {
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .footer-cta__inner { grid-template-columns: 1fr; }
  .footer-cta__right { display: none; }
  .footer-cta__heading { font-size: clamp(2rem, 8vw, 3rem); }
  .footer-cta__actions { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

/* ── FOOTER ────────────────────────────────────────────── */
.footer {
  background: #111210;
  color: rgba(255,255,255,0.65);
  padding: clamp(3rem, 7vw, 5.5rem) 0 2rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.35fr 1.15fr 1fr 1fr 0.9fr;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer__logo img {
  height: 80px;
  width: auto;
}

.footer__tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.68);
  max-width: 28ch;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 200ms ease;
  line-height: 1.4;
}

.footer__links a:hover { color: #FFFFFF; }

.footer__location {
  display: grid;
  gap: 0.25rem;
}

.footer__links .footer__location-name {
  color: rgba(255,255,255,0.76);
  font-weight: 600;
}

.footer__links .footer__location-map {
  color: rgba(255,255,255,0.46);
  font-size: 0.75rem;
  line-height: 1.45;
}

.footer__contact-item {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin-bottom: 0.625rem;
}

.footer__contact-item:last-child { margin-bottom: 0; }

.footer__contact-item a {
  color: inherit;
  transition: color 200ms ease;
}

.footer__contact-item a:hover { color: rgba(255,255,255,0.85); }

/* Bottom bar */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.68);
}

.footer__copy a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer__socials {
  display: flex;
  gap: 0.625rem;
}

.footer__social {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}

.footer__social:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(0, 217, 126, 0.08);
}

@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* services.css */
/* ==========================================================================
   SERVICES PAGE STYLES - ATHOS DARK INSPIRED
   ========================================================================== */

/* Force body styling for this page since it's a dark page */
body {
  background-color: var(--color-bg);
}

/* ──────────────────────────────────────────────────────────────────────────
   Header Section (Dark Glow)
   ────────────────────────────────────────────────────────────────────────── */
.services-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: clamp(160px, 16vw, 220px);
  padding-bottom: clamp(6rem, 10vw, 8rem);
  background-color: #000000;
  overflow: hidden;
}

/* Hero Radial Glow */
.services-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800vw;
  max-width: 1200px;
  height: 800px;
  background: radial-gradient(33.9% 83.3% at 50% 50%, rgba(0, 168, 107, 0.15) 0%, rgba(0, 168, 107, 0) 100%);
  z-index: 0;
  pointer-events: none;
}

.services-hero .container {
  position: relative;
  z-index: 1;
}

.services-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: #FAFAF8;
}

.services-hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #FFFFFF, #888888);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-hero__sub {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: #a1a1a1;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Title reveal specific for dark background */
.service-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* ──────────────────────────────────────────────────────────────────────────
   Card Stack Scroll Effect (Sticky Cards)
   ────────────────────────────────────────────────────────────────────────── */
.services-stack {
  position: relative;
  background-color: #000000;
  padding-bottom: 5vh; /* Allow scroll past last card */
  padding-left: clamp(0.75rem, 1.5vw, 1.5rem);
  padding-right: clamp(0.75rem, 1.5vw, 1.5rem);
}

.service-card-wrapper {
  position: sticky;
  /* All cards stick at the same top — each slides over the previous */
  top: 80px;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: stretch; /* Make card fill the wrapper height */
  justify-content: center;
  margin-bottom: 180vh; /* Scroll dwell time per card — keeps each card in view longer */
}

.service-card {
  flex: 1 1 auto; /* Override home.css carousel flex shorthand */
  width: 100%;
  max-width: none;
  background-color: #141414;
  border: 1px solid rgba(204, 204, 204, 0.1);
  border-radius: 37px;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5); /* Shadow above to separate stacked cards */
  display: grid;
  grid-template-columns: 1fr;
  will-change: transform;
}

@media (min-width: 900px) {
  .service-card {
    grid-template-columns: 1fr 1.2fr;
    min-height: calc(100vh - 100px);
  }
}

.service-card__content {
  padding: clamp(2.5rem, 4vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Side Glow on Card */
.service-card__content::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 50%;
  height: 50%;
  background: radial-gradient(33.9% 83.3% at 50% 50%, rgba(204,204,204, 0.05) 0%, rgba(143, 210, 255, 0) 100%);
  pointer-events: none;
}

/* Card Typography */
.service-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.825vw, 2.975rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #FAFAF8;
}

.service-card__body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #a1a1a1;
  margin-bottom: 2.5rem;
}

/* Tags */
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 2.5rem;
}

.service-tag {
  font-size: 0.69rem;
  font-weight: 500;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-card__cta {
  margin-top: 0;
}

.service-card__cta .btn-primary {
  width: 100%;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.078rem; /* base 0.9375rem × 1.15 */
}

.service-card__cta .btn-primary:hover {
  color: #FFFFFF;
}

.service-card__cta .btn-ghost {
  width: 100%;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.2);
  font-size: 1.078rem;
  margin-top: 0.75rem;
}

.service-card__cta .btn-ghost:hover {
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
}

.service-card__alt-link {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 200ms ease;
}

.service-card__alt-link:hover {
  color: #00A86B;
}

/* Card Image Column */
.service-card__image-col {
  position: relative;
  overflow: hidden;
  min-height: 350px;
}

/* Fades the edge of the image to blend horizontally on desktop */
@media (min-width: 900px) {
  .service-card__image-col::before {
    content: "";
    position: absolute;
    top: 0;
    left: -1px; /* Overlap slightly */
    bottom: 0;
    width: 25%;
    z-index: 2;
    background: linear-gradient(90deg, #141414 0%, rgba(20,20,20,0) 100%);
  }
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card__img {
  transform: scale(1.05);
}

/* Transition to CTA Band */
.cta-band {
  position: relative;
  z-index: 100;
  background-color: #000;
}

/* ──────────────────────────────────────────────────────────────────────────
   Persona Matrix Redesign (Who We Serve)
   ────────────────────────────────────────────────────────────────────────── */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.matrix-quadrant {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 24px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.matrix-quadrant:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.quadrant-blur {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--q-color, var(--color-accent));
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
}

.matrix-quadrant .q-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: var(--q-color, var(--color-accent));
  margin-bottom: 0.75rem;
  display: block;
}

.matrix-quadrant h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 500;
  margin: 0;
  color: #fff;
  letter-spacing: -0.01em;
}

.matrix-list {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0 0;
}

.matrix-list li {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
  position: relative;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
  line-height: 1.6;
}

.matrix-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--q-color, var(--color-accent));
  font-weight: 900;
}

.matrix-list li strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .matrix-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .matrix-quadrant {
    padding: 2rem;
  }
}

/* service-generic.css */
/* Generic service knowledge pages only. Kept separate from the live card-stack page. */

.skip-link {
  position: fixed;
  z-index: calc(var(--z-navbar) + 10);
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
  transition: transform var(--transition-fast);
}

.skip-link:focus { transform: translateY(0); }

.service-generic__content {
  background: var(--color-bg);
  color: var(--color-text);
}

.service-generic__content :where(section, nav) { scroll-margin-top: 7rem; }

.service-generic__content :where(.service-generic__answer, .service-generic__plain-language, .service-generic__section,
  .service-generic__visuals, .service-generic__technical, .service-generic__references,
  .service-generic__editorial, .service-generic__links) {
  padding-block: clamp(3.5rem, 7vw, 7rem);
}

.service-generic__content h2 {
  max-width: 24ch;
  margin-bottom: clamp(1.35rem, 3vw, 2.5rem);
  font-size: clamp(2rem, 4vw, 3.6rem);
}
.service-generic__hero-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(20rem,.95fr);align-items:center;gap:clamp(2rem,5vw,5rem)}
.service-generic__hero-copy{order:1}.service-generic__hero-photo{order:2;margin:0}.service-generic__hero-photo img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:var(--radius-lg);box-shadow:0 24px 60px rgba(0,0,0,.28)}.service-generic__hero-photo figcaption{margin-top:.65rem;color:rgba(255,255,255,.68);font-size:.78rem;line-height:1.45}

.service-generic__content h3 {
  margin-bottom: .8rem;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.service-generic__content p,
.service-generic__content li {
  max-width: 72ch;
  color: var(--color-text-muted);
}

.service-generic__content p + p { margin-top: 1rem; }
.service-generic__content ul:not(.footer__links) { margin-top: 1rem; padding-left: 1.2rem; list-style: disc; }
.service-generic__content li + li { margin-top: .5rem; }

.service-generic__kicker {
  margin-bottom: .7rem;
  color: var(--color-accent-deep);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.service-generic__draft {
  max-width: 62rem;
  margin-top: 1.5rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.08);
}

.service-generic__draft p { margin: 0; color: rgba(255,255,255,.78); font-size: .88rem; }

.service-generic__answer { background: var(--color-surface); }
.service-generic__answer .container {
  padding-left: clamp(1.2rem, 4vw, 3.5rem);
  border-left: 4px solid var(--color-accent);
}
.service-generic__answer p:not(.service-generic__kicker) { font-size: clamp(1.08rem, 2vw, 1.32rem); }

.service-generic__toc { padding-block: 2rem; border-block: var(--border-subtle); background: var(--color-bg-alt); }
.service-generic__toc h2 { margin-bottom: 1rem; font-size: 1rem; letter-spacing: .02em; }
.service-generic__toc ol { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .55rem; list-style: none; counter-reset: toc; }
.service-generic__toc li, .service-generic__toc li + li { display: flex; margin: 0; counter-increment: toc; }
.service-generic__toc a {
  display: flex;
  gap: .45rem;
  align-items: center;
  min-height: 2.75rem;
  padding: .55rem .8rem;
  border: var(--border-subtle);
  border-radius: 999px;
  background: var(--color-surface);
  font-size: .82rem;
}
.service-generic__toc a::before { content: counter(toc, decimal-leading-zero); color: var(--color-accent-dark); font-weight: 700; }
.service-generic__toc a:hover { border-color: var(--color-accent-dark); }

.service-generic__plain-language { background: var(--color-accent-dim); }
.service-generic__plain-language .container { max-width: 62rem; }

.service-generic__section > .container {
  display: grid;
  grid-template-columns: minmax(14rem, .65fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 6rem);
}
.service-generic__section > .container > h2 { grid-column: 1; grid-row: 1 / -1; position: sticky; top: 7rem; align-self: start; }
.service-generic__section > .container > :not(h2) { grid-column: 2; }
.service-generic__module { padding-block: 1.5rem; border-top: var(--border-subtle); }
.service-generic__module:last-child { border-bottom: var(--border-subtle); }

.service-generic__visuals { background: #131612; color: #fff; }
.service-generic__visuals h2 { color: #fff; }
.service-generic__visuals .container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}
.service-generic__visuals h2 { grid-column: 1 / -1; }
.service-generic__visuals--single .container { grid-template-columns: 1fr; }
.service-generic__visuals--single .service-generic__visual { width: min(100%, 64rem); margin-inline: auto; }
.service-generic__visual {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.05);
}
.service-generic__visual:first-of-type { grid-column: 1 / -1; }
.service-generic__visual img { display: block; width: 100%; height: auto; }
.service-generic__visual--photo img { aspect-ratio: 3 / 2; object-fit: cover; }
.service-generic__visual--diagram { overflow: visible; background: var(--color-surface); }
.service-generic__visual--diagram img { object-fit: contain; }

/* On a phone the 1200-unit canvas renders ~340px wide, which puts a 32px node
   label at ~9px on screen. Give the diagram a readable floor and let the
   figure pan horizontally instead of shrinking the type into illegibility. */
@media (max-width: 768px) {
  .service-generic__visual--diagram {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .service-generic__visual--diagram img {
    min-width: 40rem;
    width: 40rem;
    max-width: none;
  }
  .service-generic__visual--diagram figcaption { position: sticky; left: 0; }
}
.service-generic__visual figcaption { padding: .85rem 1rem 1rem; color: rgba(255,255,255,.72); font-size: .82rem; }

.service-generic__technical:nth-of-type(even) { background: var(--color-bg-alt); }
.service-generic__technical .service-generic__visual + .service-generic__visual { margin-top: 3rem; }
.service-generic__technical .service-generic__visual { max-width: 64rem; background: var(--color-surface); border-color: rgba(0,0,0,.1); }
.service-generic__technical .service-generic__visual figcaption { color: var(--color-text-muted); }

.service-generic__table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin-top: 1.5rem;
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.service-generic__table-wrap:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.service-generic__table-wrap table { width: 100%; min-width: 42rem; border-collapse: collapse; }
.service-generic__table-wrap caption { padding: 1rem; text-align: left; font-weight: 700; }
.service-generic__table-wrap th,
.service-generic__table-wrap td { padding: .85rem 1rem; border-top: var(--border-subtle); text-align: left; vertical-align: top; }
.service-generic__table-wrap th { color: var(--color-text); background: var(--color-bg-alt); font-size: .82rem; }

.service-generic__cta { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.service-generic__cta--learn { background: var(--color-bg-alt); }
.service-generic__cta--evaluate { background: var(--color-accent-dim); }
.service-generic__cta--buy { background: #111410; color: #fff; }
.service-generic__cta--buy .service-generic__kicker { color: #8fe2b9; }
.service-generic__cta-inner { display: flex; gap: 2rem; align-items: center; justify-content: space-between; }
.service-generic__cta h2 { margin-bottom: .65rem; font-size: clamp(1.7rem, 3vw, 2.7rem); }
.service-generic__cta--buy h2 { color: #fff; }
.service-generic__cta--buy p:not(.service-generic__kicker) { color: rgba(255,255,255,.72); }
.service-generic__cta .btn-primary { flex: 0 0 auto; min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; }

.service-generic__references a,
.service-generic__editorial a,
.service-generic__links a { color: var(--color-accent-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.service-generic__references { background: var(--color-bg-alt); }
.service-generic__references > .container > p:not(.service-generic__kicker) { max-width: 64ch; }
.service-generic__video-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0 !important;
  list-style: none !important;
}
.service-generic__video-reference {
  margin: 0 !important;
  padding: 1.25rem;
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.service-generic__video-reference h3 { margin-bottom: .45rem; }
.service-generic__video-reference p { font-size: .9rem; }
.service-generic__video-meta { color: var(--color-text) !important; font-size: .78rem !important; font-weight: 700; }
.service-generic__editorial { border-top: var(--border-subtle); font-size: .9rem; }
.service-generic__link-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.service-generic__link-groups > div { padding: 1.25rem; border: var(--border-subtle); border-radius: var(--radius-md); background: var(--color-surface); }
.service-generic__links-empty { font-size: .85rem; }

@media (max-width: 800px) {
  .service-generic__hero-grid{grid-template-columns:1fr}.service-generic__hero-photo{order:1;width:min(100%,180px);margin:1rem auto 0}.service-generic__hero-copy{order:2}.service-generic__hero-photo img{height:min(120px,calc((100vw - 3rem)*.666667))}.service-generic__hero-photo figcaption{font-size:.74rem}.services-hero__sub{display:-webkit-box;overflow:hidden;font-size:1rem;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:3}
  .service-generic__content :where(.service-generic__answer, .service-generic__plain-language, .service-generic__section,
    .service-generic__visuals, .service-generic__technical, .service-generic__references,
    .service-generic__editorial, .service-generic__links) { padding-block: 3.5rem; }
  .service-generic__section > .container { grid-template-columns: 1fr; gap: .5rem; }
  .service-generic__section > .container > h2 { position: static; }
  .service-generic__visuals .container { grid-template-columns: 1fr; }
  .service-generic__visual:first-of-type { grid-column: auto; }
  .service-generic__cta-inner { align-items: flex-start; flex-direction: column; }
  .service-generic__cta .btn-primary { width: 100%; }
  .service-generic__link-groups { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .service-generic__toc ol { flex-flow: column nowrap; }
  .service-generic__toc a { width: 100%; border-radius: var(--radius-md); }
  .service-generic__content h2 { font-size: clamp(1.75rem, 9vw, 2.35rem); }
  .service-generic__answer .container { padding-left: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
  .service-generic__content { scroll-behavior: auto; }
}

@media print {
  .service-generic__cta, .service-generic__toc, .service-generic__links, .skip-link { display: none; }
  .service-generic__content :where(section, nav) { padding-block: 1rem; break-inside: avoid; }
  .service-generic__visuals { background: #fff; color: #000; }
  .service-generic__visuals h2, .service-generic__visuals figcaption { color: #000; }
}
