
:root {
  --bg-primary: #f8f9fb;
  --bg-secondary: white;
  --bg-dark: #050e17;
  --bg-darker: #00040d;
  --text-primary: #050e17;
  --text-secondary: #4b5563;
  --text-light: #d1d5db;
  --text-white: white;
  --accent-blue: #1452b1;
  --accent-blue-light: #347db6;
  --accent-green: #42841F;
  --accent-green-light: #6cb833;
  --accent-yellow: #ffc00a;
  --accent-yellow-dark: #e69c09;
  --border-light: rgba(20, 82, 177, 0.12);
  --border-dark: rgba(255, 255, 255, 0.12);
  --card-bg-light: rgba(255, 255, 255, 0.95);
  --card-bg-dark: rgba(5, 14, 23, 0.75);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --transition-duration: 250ms;
  --font-body: "Montserrat", sans-serif;
  --font-heading: "Montserrat", sans-serif;
  --font-size-base: 16px;
  --font-weight-heading: 700;
}

/* Use html.dark so Theme Options :root cannot override dark text/surfaces. */
html.dark {
  --bg-primary: linear-gradient(
    135deg,
    #050e17 0%,
    #0a2a4d 50%,
    #050e17 100%
  );
  --bg-secondary: #0a1624;
  --bg-dark: #050e17;
  --bg-darker: #00040d;
  --text-primary: #ffffff;
  --text-secondary: #b0b8c4;
  --text-light: #8b95a5;
  --text-white: #ffffff;
  --accent-blue: #1452b1;
  --accent-blue-light: #347db6;
  --accent-green: #42841F;
  --accent-green-light: #6cb833;
  --accent-yellow: #ffc00a;
  --accent-yellow-dark: #e69c09;
  --border-light: rgba(255, 255, 255, 0.12);
  --border-dark: rgba(255, 255, 255, 0.12);
  --card-bg-light: rgba(14, 28, 44, 0.94);
  --card-bg-dark: rgba(14, 28, 44, 0.94);
  --card-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

/*
 * Same as static HTML: Montserrat on elements only.
 * Do NOT set font-family on *::before / *::after — that breaks Font Awesome
 * (FA6 puts the icon font on the element; glyphs render via ::before inherit).
 */
* {
  font-family: var(--font-body, "Montserrat", sans-serif);
  transition:
    background-color var(--transition-duration) ease,
    color var(--transition-duration) ease,
    border-color var(--transition-duration) ease,
    box-shadow var(--transition-duration) ease;
  overflow-wrap: break-word;
}

/* Beat Tailwind CDN preflight (ui-sans-serif / system-ui on html). */
html,
html.light,
html.dark,
body {
  font-family: var(--font-body, "Montserrat", sans-serif);
}

/* Keep Font Awesome icon fonts (must beat the * { Montserrat } rule). */
.fa,
.fas,
.far,
.fal,
.fat,
.fab,
.fa-solid,
.fa-regular,
.fa-light,
.fa-thin,
.fa-brands {
  font-family: var(--fa-style-family, "Font Awesome 6 Free") !important;
  font-weight: var(--fa-style, 900);
}

.fab,
.fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400;
}

/* Never split a single word mid-character in headings / stat titles */
h1, h2, h3, h4, h5, h6,
.hero-heading,
.raw-about-stat-title {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
}

html {
  font-size: var(--font-size-base);
  margin: 0 !important;
  padding: 0 !important;
  /* Light canvas — residual VC gutters must never flash navy bands. */
  background-color: var(--bg-primary);
}

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

/*
 * Light body on all pages. Dark heroes / sections paint their own navy.
 * #raw-top-seal covers the transparent navbar strip on dark-hero pages.
 */
body.gradient-bg:not(.light-hero),
body.light-hero.gradient-bg {
  background: var(--bg-primary) !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.dark body.gradient-bg,
html.dark body.light-hero.gradient-bg {
  background: var(--bg-dark) !important;
}

/* Logged-out: navbar must sit on the viewport edge */
body:not(.admin-bar) #navbar,
body:not(.admin-bar) #navbar.fixed,
body:not(.admin-bar) #navbar.absolute {
  top: 0 !important;
}

/*
 * Family only — do not force heading weight (static HTML relies on Tailwind
 * font-black / font-semibold / .hero-heading, not a global 700).
 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading, "Montserrat", sans-serif);
}

html,
body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.gradient-bg {
  background: var(--bg-primary);
}

.testimonials-section {
  background: #e8ebf0;
}

.testimonials-pattern {
  background-image: radial-gradient(circle, #88929f 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.4;
}

.dark .testimonials-section,
html.dark .testimonials-section {
  background: var(--bg-dark);
}

.dark .testimonials-pattern,
html.dark .testimonials-pattern {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  opacity: 0.35;
}

/* Professional Max-Width Container */
.container-pro {
  width: 100%;
  max-width: 1280px; /* Standard desktop max width */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container-pro {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container-pro {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
@media (min-width: 1536px) {
  .container-pro {
    max-width: 1440px; /* Larger max for bigger screens */
  }
}

.card-gradient {
  background: var(--card-bg-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
}

/* Darker hero-specific card style for high contrast */
.hero-card {
  background: linear-gradient(180deg, rgba(5,14,23,0.92) 0%, rgba(10,26,40,0.78) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.95);
  padding: 1rem;
}

.hero-card .text-xs {
  color: rgba(255,255,255,0.95) !important;
}

.hero-card .text-[11px] {
  color: rgba(255,255,255,0.72) !important;
}

.hero-card .w-12.h-12 {
  background: rgba(255,255,255,0.03);
}

/* Device categories row (below hero) */
.device-categories-heading {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.95);
  text-transform: uppercase;
  font-weight: 600;
}

.device-categories-section {
  background: var(--bg-dark); /* solid dark background matching site hero */
  padding: 1.25rem 0 2.5rem 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  margin: 0;
  overflow: visible;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.category-card {
  background: linear-gradient(180deg, rgba(3,11,20,0.92) 0%, rgba(8,18,32,0.80) 100%);
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  padding: 1.25rem 1.25rem 2.25rem 1.25rem; /* extra bottom space for chevron */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  border-radius: 12px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.25s ease;
  color: rgba(255,255,255,0.95);
  min-height: 140px;
  position: relative;
  overflow: hidden;
}

.category-card .category-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255,255,255,0.98);
  letter-spacing: 0.02em;
}

.category-card .category-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.25rem;
}

.category-card .icon-wrap {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  color: var(--accent-blue);
  font-size: 20px;
}

.icon-blue { color: var(--accent-blue); }
.icon-green { color: var(--accent-green); }
.icon-yellow { color: var(--accent-yellow); }

.category-card .chev {
  position: absolute;
  right: 18px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0,0,0,0.65);
  border-color: rgba(66,132,31,0.18);
}

/* Product highlight (section after categories) */
.hero-section {
  background: var(--bg-dark);
  overflow: hidden;
}

.wellness-tech-section {
  padding: 3rem 0 4rem 0;
  background: var(--bg-dark);
}

.wellness-tech-heading {
  display: flex;
  justify-content: center;
}

.wellness-tech-eyebrow {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}

.wellness-tech-eyebrow span {
  color: var(--accent-green);
}

.wellness-tech-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .wellness-tech-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.wellness-tech-copy {
  max-width: 540px;
}

.wellness-tech-counter {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.wellness-tech-title {
  font-size: 3rem;
  line-height: 1.05;
  color: white;
  font-weight: 800;
  margin-bottom: 1rem;
}

.wellness-tech-description {
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.wellness-tech-badges {
  display: grid;
  gap: 0.95rem;
  margin-bottom: 1.75rem;
}

.wellness-tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.wellness-tech-badge i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20,82,177,0.18);
  color: var(--accent-blue);
}

.wellness-tech-cta {
  margin-top: 1rem;
}

.wellness-tech-visual {
  position: relative;
  min-height: 420px;
}

.wellness-tech-visual-bg {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(9,19,36,1) 0%, rgba(5,11,21,0.95) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 15px 60px rgba(0,0,0,0.4);
}

.wellness-tech-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.wellness-tech-image {
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

@media (min-width: 1280px) {
  .wellness-tech-title {
    font-size: 3.75rem;
  }

  .wellness-tech-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .product-highlight-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.product-highlight-eyebrow {
  font-size: 0.75rem;
  color: rgba(66,132,31,0.95);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.product-highlight-title {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.96);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.product-highlight-desc {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
}

.hero-badges {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hero-badge {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 1.25rem;
  border-radius: 14px;
}

.hero-badge-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: var(--accent-green);
  font-size: 18px;
}

.hero-badge-title {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.95);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-badge-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.72);
}

.product-features {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

.product-feature {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: rgba(255,255,255,0.85);
}

.product-feature .feat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: var(--accent-blue);
}

.product-cta {
  margin-top: 1.25rem;
}

.product-right-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-highlight-section {
  overflow: hidden;
}

.product-right-bg {
  position: absolute;
  right: 0;
  top: 8%;
  bottom: 8%;
  left: 30%;
  background: linear-gradient(90deg, rgba(6,18,34,1) 0%, rgba(10,26,40,0.98) 100%);
  border-radius: 14px;
  z-index: 0;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.product-category-showcase {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(180deg, rgba(4, 8, 18, 0.98) 0%, rgba(6, 12, 28, 0.98) 45%, rgba(3, 4, 12, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  overflow: hidden;
  padding: 20px 0;
}

.product-category-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 20%, rgba(58, 128, 226, 0.08), transparent 22%), radial-gradient(circle at 85% 10%, rgba(83, 186, 255, 0.05), transparent 18%);
  mix-blend-mode: screen;
}

.product-category-scroll {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.product-category-scroll::-webkit-scrollbar {
  display: none;
}
.product-category-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.product-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-category-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 132px;
  padding: 28px 34px;
  background: rgba(8, 16, 34, 0.88);
  backdrop-filter: blur(10px);
  overflow: hidden;
  border-radius: 0 22px 22px 0;
}

.product-category-card:first-child {
  border-left: none;
  border-radius: 16px 16px 16px 0;
}

.product-category-card:hover {
  background: rgba(13, 25, 56, 0.98);
}

.product-category-copy {
  max-width: 52%;
  z-index: 1;
}

.product-category-label {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
}

.product-category-title {
  margin: 0 0 10px;
  color: white;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.product-category-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
}

.product-category-action {
  position: relative;
  display: inline-flex;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(82, 203, 97, 0.9);
  border-radius: 50%;
  background: rgba(3, 8, 18, 0.85);
  color: rgba(82, 203, 97, 1);
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  margin-top: 10px;
}

.product-category-card:hover .product-category-action {
  box-shadow: 0 0 18px rgba(82, 203, 97, 0.4);
}

.product-category-action:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(82, 203, 97, 0.4);
  background: rgba(11, 22, 40, 0.85);
}

.product-category-action svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.product-category-action:hover svg {
  transform: translateX(3px);
}

.product-category-media {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 98px;
  height: 98px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.product-category-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: translateY(6px);
  transition: transform 0.3s ease;
}

.product-category-card:hover .product-category-media img {
  transform: translateY(6px) scale(1.03);
}

.product-category-card:not(:first-child) {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.media-1 {
  width: 104px;
  height: 104px;
}

.media-2 {
  width: 88px;
  height: 88px;
}

.media-3 {
  width: 92px;
  height: 92px;
}

.media-4 {
  width: 90px;
  height: 90px;
}

.media-5 {
  width: 90px;
  height: 90px;
}

@media (max-width: 1280px) {
  .product-category-showcase {
    padding: 16px 0;
  }
  .product-category-card {
    padding: 20px 22px;
    min-height: 118px;
  }
  .product-category-title {
    font-size: 13px;
  }
  .product-category-description {
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  .product-category-grid {
    display: flex;
    gap: 0;
    min-width: max-content;
    scroll-snap-type: x mandatory;
  }

  .product-category-card {
    min-width: 280px;
    flex: 0 0 280px;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    scroll-snap-align: start;
  }

  .product-category-card:last-child {
    border-right: none;
  }

  .product-category-action {
    width: 26px;
    height: 26px;
  }

  .product-category-media {
    width: 84px;
    height: 84px;
    right: 18px;
    bottom: 12px;
  }
}

@media (max-width: 640px) {
  .product-category-card {
    min-width: 260px;
    flex: 0 0 260px;
    padding: 18px 16px;
    min-height: 110px;
  }

  .product-category-title {
    font-size: 12px;
  }

  .product-category-description {
    font-size: 10px;
  }
}

@media (min-width: 768px) {
  .product-right-bg { left: 50%; }
}

@media (min-width: 1280px) {
  .product-right-bg { left: 55%; }
}

.product-right-img {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: 100%;
  object-fit: contain;
}

/* Navbar Scroll Styles */
/* Neutralize WP .site-header defaults so chrome matches the static navbar */
#navbar.site-header {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Prevent inline-image baseline gap (logo vs nav text look “off”) */
#navbar img {
  display: block;
  vertical-align: middle;
}

#navbar .container-pro > div {
  width: 100%;
  align-items: center;
}

/*
 * Admin-bar ↔ navbar seam: authoritative rules live in inc/admin-bar-seal.php.
 * Keep only mobile-menu offsets here (must track the same 32px / 46px).
 */
body.admin-bar #navbar {
  top: 32px !important;
}

html {
  margin-top: 0 !important;
}

body.admin-bar #mobileMenu {
  top: calc(64px + 0.75rem + 32px);
}
@media screen and (max-width: 782px) {
  body.admin-bar #navbar {
    top: 46px !important;
  }
  body.admin-bar #mobileMenu {
    top: calc(64px + 0.75rem + 46px);
  }
}

#navbar.scrolled {
  background: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

#navbar.scrolled .nav-link {
  color: var(--text-primary) !important;
}

#navbar.scrolled .nav-link:hover {
  color: var(--accent-blue) !important;
}

#navbar.scrolled #loginBtn {
  color: var(--text-primary) !important;
  border-color: var(--bg-dark) !important;
}

#navbar.scrolled #loginBtn:hover {
  background: var(--bg-dark) !important;
  color: white !important;
}

/* ── Light-hero pages — blend with hero until scroll (LIGHT MODE ONLY) ── */
html:not(.dark) body.light-hero #navbar:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
html:not(.dark) body.light-hero #navbar.scrolled,
html:not(.dark) body.light-hero.raw-nav-scrolled #navbar {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.07);
}
html:not(.dark) body.light-hero #navbar .nav-link {
  color: #374151 !important;
}
html:not(.dark) body.light-hero #navbar .nav-link:hover {
  color: var(--accent-blue) !important;
}
html:not(.dark) body.light-hero #navbar .nav-link.text-white {
  color: #050e17 !important;
}
html:not(.dark) body.light-hero #navbar #loginBtn {
  color: #050e17 !important;
  border-color: rgba(5,14,23,0.3) !important;
  background: transparent !important;
}
html:not(.dark) body.light-hero #navbar .mobile-header-cta {
  color: white !important;
}
html:not(.dark) body.light-hero .theme-toggle {
  border-color: rgba(5,14,23,0.25) !important;
}
html:not(.dark) body.light-hero .theme-toggle i {
  color: #050e17 !important;
}
html:not(.dark) body.light-hero .hamburger-line {
  background: var(--bg-dark) !important;
}

/* Dark mode: navbar always navy (beats every light-hero rule) */
html.dark #navbar,
html.dark #navbar.scrolled,
html.dark body.light-hero #navbar,
html.dark body.light-hero #navbar.scrolled,
html.dark body.light-hero:not(.raw-nav-scrolled) #navbar:not(.scrolled),
html.dark body.light-hero.raw-nav-scrolled #navbar,
html.dark body.raw-login-page #navbar,
html.dark body.raw-registration-flow #navbar {
  background: #07111c !important;
  background-color: #07111c !important;
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.45) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
html.dark body.light-hero .hamburger-line,
html.dark body.raw-login-page .hamburger-line,
html.dark body.raw-registration-flow .hamburger-line,
html.dark .hamburger-line {
  background: #ffffff !important;
}

html.dark #navbar .nav-link,
html.dark #navbar .nav-link.text-white,
html.dark #navbar #loginBtn,
html.dark body.light-hero #navbar .nav-link,
html.dark body.light-hero #navbar .nav-link.text-white,
html.dark body.light-hero #navbar #loginBtn,
html.dark body.raw-login-page #navbar .nav-link,
html.dark body.raw-login-page #navbar .nav-link.text-white,
html.dark body.raw-login-page #navbar #loginBtn,
html.dark body.raw-registration-flow #navbar .nav-link,
html.dark body.raw-registration-flow #navbar .nav-link.text-white,
html.dark body.raw-registration-flow #navbar #loginBtn {
  color: rgba(255, 255, 255, 0.92) !important;
}

html.dark #navbar .nav-link:hover,
html.dark body.light-hero #navbar .nav-link:hover,
html.dark body.raw-login-page #navbar .nav-link:hover,
html.dark body.raw-registration-flow #navbar .nav-link:hover {
  color: #ffffff !important;
}

html.dark #navbar #loginBtn,
html.dark body.light-hero #navbar #loginBtn,
html.dark body.raw-login-page #navbar #loginBtn,
html.dark body.raw-registration-flow #navbar #loginBtn {
  border-color: rgba(255, 255, 255, 0.4) !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

html.dark .theme-toggle,
html.dark body.light-hero .theme-toggle,
html.dark body.raw-login-page .theme-toggle,
html.dark body.raw-registration-flow .theme-toggle {
  border-color: rgba(255, 255, 255, 0.35) !important;
}

html.dark .theme-toggle i,
html.dark body.light-hero .theme-toggle i,
html.dark body.raw-login-page .theme-toggle i,
html.dark body.raw-registration-flow .theme-toggle i {
  color: #ffffff !important;
}

/* Dark mode About dropdown — stay navy (never white panel) */
html.dark .nav-dropdown-menu,
html.dark #navbar.scrolled .nav-dropdown-menu,
html.dark body.light-hero .nav-dropdown-menu {
  background: #0a1624 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45) !important;
}
html.dark .nav-dropdown-item,
html.dark #navbar.scrolled .nav-dropdown-item,
html.dark body.light-hero .nav-dropdown-item {
  color: rgba(255, 255, 255, 0.88) !important;
}
html.dark .nav-dropdown-item:hover,
html.dark #navbar.scrolled .nav-dropdown-item:hover,
html.dark body.light-hero .nav-dropdown-item:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Dark Mode Navbar */
.dark #navbar.scrolled {
  background: rgba(5, 14, 23, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dark #navbar.scrolled .nav-link {
  color: white !important;
}

.dark #navbar.scrolled .nav-link:hover {
  color: var(--accent-blue) !important;
}

.dark #navbar.scrolled #loginBtn {
  color: white !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.btn-primary {
  background: var(--accent-green);
}

.btn-primary:hover {
  background: #529a25;
}

.btn-blue {
  background: radial-gradient(ellipse at top, var(--accent-blue-light) 0%, var(--accent-blue) 100%);
}

.btn-blue:hover {
  background: radial-gradient(ellipse at top, #3d8ec9 0%, #1a64d8 100%);
}

.slider-dot {
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--accent-green);
  width: 20px;
}

.hero-radial {
  background: radial-gradient(
    ellipse at center,
    var(--accent-blue) 0%,
    transparent 70%
  );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.hero-foreground {
  position: relative;
  z-index: 10;
  color: #fff;
}

.hero-foreground .hero-heading,
.hero-foreground .hero-line,
.hero-foreground .hero-eyebrow,
.hero-foreground .hero-member-count,
.hero-foreground .hero-member-sub {
  color: #fff;
}

.hero-foreground .hero-description,
.hero-foreground .text-gray-300 {
  color: #d1d5db;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.theme-toggle i {
  font-size: 14px;
  color: white;
}

.light .theme-toggle {
  border-color: #e5e7eb;
}

.light .theme-toggle i {
  color: var(--text-primary);
}

.theme-toggle .fa-sun {
  display: none !important;
}

.theme-toggle .fa-moon {
  display: block !important;
}

.dark .theme-toggle {
  border-color: white;
}

.dark .theme-toggle .fa-sun {
  display: block !important;
}

.dark .theme-toggle .fa-moon {
  display: none !important;
}

/*
 * Dark transparent navbar: theme toggle stays white even when html.light.
 * (html.light otherwise paints the moon navy → invisible on Home.)
 */
body:not(.light-hero) #navbar:not(.scrolled) .theme-toggle {
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

body:not(.light-hero) #navbar:not(.scrolled) .theme-toggle i,
body:not(.light-hero) #navbar:not(.scrolled) .theme-toggle .fa-moon,
body:not(.light-hero) #navbar:not(.scrolled) .theme-toggle .fa-sun {
  color: #ffffff !important;
}

body:not(.light-hero) #navbar:not(.scrolled) .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.22) !important;
}

/* ===============================
   Premium Animation System Overhaul
   =============================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Loading spinners are status indicators, not decoration — a frozen ring looks like a hang. */
  .raw-dash-transit__ring,
  .raw-reg-transit__ring,
  .raw-upline-searching__spinner,
  .raw-place-form__msg.is-loading::before,
  .raw-wsc-item-loader::after,
  .fa-spin,
  .fa-spinner {
    animation-duration: 1s !important;
    animation-iteration-count: infinite !important;
    animation-timing-function: linear !important;
  }
  .raw-dash-transit__orb,
  .raw-reg-transit__orb {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
    animation-timing-function: linear !important;
  }
  .fa-spinner:not(.fa-spin) {
    animation-name: none !important;
  }
}

/* Base Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Page Load Animations */
.animate-fadeInUp {
  animation: fadeInUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.animate-fadeIn {
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.animate-scaleIn {
  animation: scaleIn 1.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Scroll Reveal Base */
.reveal-up {
  opacity: 0;
  transform: translate3d(0, 35px, 0);
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/*
 * WPBakery frontend editor replaces shortcode HTML on save without re-running
 * IntersectionObserver. Keep reveal content visible while editing.
 */
body.vc_editor .reveal-up,
body.compose-mode .reveal-up,
body.raw-vc-editing .reveal-up,
html.vc_editor .reveal-up {
  opacity: 1 !important;
  transform: none !important;
}

/* Button Hover Effects */
button,
.btn-primary,
.btn-blue {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease;
}
button:hover,
.btn-primary:hover,
.btn-blue:hover {
  transform: translateY(-5px);
}

/* Card Hover Effects */
.product-card,
.value-card,
.card-gradient {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
/* Dark mode: green shadow */
html:not(.light) .product-card:hover,
html:not(.light) .value-card:hover,
html:not(.light) .card-gradient:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 25px 60px rgba(66, 132, 31, 0.35), 0 12px 30px rgba(0,0,0,0.12) !important;
}
/* Light mode: blue shadow */
html.light .product-card:hover,
html.light .value-card:hover,
html.light .card-gradient:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 25px 60px rgba(20, 82, 177, 0.35), 0 12px 30px rgba(0,0,0,0.12) !important;
}

/* Filter toggle styles */
.filter-toggle {
  cursor: pointer;
}
.filter-content {
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.filter-content.collapsed {
  max-height: 0;
  opacity: 0;
}
.filter-icon {
  transition: transform 0.3s ease;
}
.filter-toggle.collapsed .filter-icon {
  transform: rotate(180deg);
}

/* Keep icons circular, no squashing */
.fas,
.fab,
.far {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
}

/* Nav Link Hover Effects */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after {
  width: 100%;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* WPBakery / theme: kill inter-section body gutters */
.vc_row,
.vc_row-fluid,
.wpb_row,
.vc_section,
.wpb-content-wrapper > .vc_row {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

main > section,
#primary > section,
.site-main > section,
.entry-content > .vc_row,
.entry-content > .vc_section,
.entry-content section,
.wpb-content-wrapper section,
.raw-home > section,
.values-section-wrap,
.wd-hero-section,
.faq-hero,
.testi-hero,
.contact-hero {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Thin seams between marketing sections — footer-style hairline */
.wpb-content-wrapper > .vc_row.raw-vc-section-row + .vc_row.raw-vc-section-row,
.entry-content > .vc_row.raw-vc-section-row + .vc_row.raw-vc-section-row,
.wpb-content-wrapper > .vc_row.raw-vc-section-row + .vc_row-full-width + .vc_row.raw-vc-section-row,
.entry-content > .vc_row.raw-vc-section-row + .vc_row-full-width + .vc_row.raw-vc-section-row,
main > section + section,
.site-main > section + section,
.raw-home > section + section {
  margin-top: -1px !important;
  border-top: 1px solid rgba(20, 82, 177, 0.2) !important;
}

html.dark .wpb-content-wrapper > .vc_row.raw-vc-section-row + .vc_row.raw-vc-section-row,
html.dark .entry-content > .vc_row.raw-vc-section-row + .vc_row.raw-vc-section-row,
html.dark .wpb-content-wrapper > .vc_row.raw-vc-section-row + .vc_row-full-width + .vc_row.raw-vc-section-row,
html.dark .entry-content > .vc_row.raw-vc-section-row + .vc_row-full-width + .vc_row.raw-vc-section-row,
html.dark main > section + section,
html.dark .site-main > section + section {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

/* Kill WPBakery clearfix + <br> gutters between sections (the wide black bands) */
.vc_row-full-width,
.vc_row-full-width.vc_clearfix {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

.wpb-content-wrapper > br,
.entry-content > br,
.wpb-content-wrapper > .vc_row-full-width + br,
.entry-content > .vc_row-full-width + br {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

/* Contact / light blocks: avoid double thick seam under info bar */
.contact-info-wrap {
	margin-bottom: 0 !important;
	padding-bottom: 2.5rem;
}

.page-template-page-contact-php .contact-info-wrap + .vc_row-full-width + .vc_row,
.page-template-page-contact-php .wpb-content-wrapper .raw-vc-section-row:has(.contact-info-wrap) {
	margin-bottom: 0 !important;
}

section[id] {
  scroll-margin-top: 4.5rem;
}

@media (min-width: 768px) {
  section[id] {
    scroll-margin-top: 7.5rem;
  }
}

/* Theme toggle on scrolled light navbar */
html:not(.dark) #navbar.scrolled .theme-toggle {
  border-color: #e5e7eb;
  background: rgba(5, 14, 23, 0.05);
}

html:not(.dark) #navbar.scrolled .theme-toggle i {
  color: var(--text-primary);
}

#mobileMenuBtn {
  position: relative;
  z-index: 9999;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ===============================
   Premium Mobile Navigation
   =============================== */
@media (max-width: 1023px) {
  /* Transparent over hero until scroll — do NOT paint a dark or white fill */
  body:not(.light-hero) #navbar:not(.scrolled),
  #navbar:not(.scrolled):not(.light-hero) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  /* Mobile chrome: logo + cart + hamburger only */
  #navbar .mobile-header-cta,
  #navbar #themeToggle {
    display: none !important;
  }

  #navbar.scrolled {
    background: rgba(5, 14, 23, 0.96);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
  }

  html:not(.dark) #navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  }

  /* Light-hero pages keep readable chrome even before scroll */
  body.light-hero #navbar:not(.scrolled) {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.07);
  }

  .mobile-menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    z-index: 9999;
    position: relative;
  }

  .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
  }

  .mobile-menu-btn.is-open {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .hamburger-line {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.25s ease;
  }

  html:not(.dark) #navbar.scrolled .hamburger-line {
    background: var(--bg-dark);
  }

  .mobile-menu-btn.is-open .hamburger-line {
    background: white;
    height: 2.5px;
  }

  html:not(.dark) #navbar.scrolled .mobile-menu-btn.is-open .hamburger-line {
    background: var(--bg-dark);
  }

  html:not(.dark) #navbar.scrolled .mobile-menu-btn {
    border-color: rgba(5, 14, 23, 0.15);
    background: rgba(5, 14, 23, 0.04);
  }

  html:not(.dark) #navbar.scrolled .mobile-menu-btn.is-open {
    background: rgba(5, 14, 23, 0.08);
    border-color: rgba(5, 14, 23, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(5, 14, 23, 0.1);
  }

  .mobile-menu-btn.is-open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-btn.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-menu-btn.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-header-cta {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
  }

  #mobileMenuBackdrop {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  #mobileMenuBackdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  #mobileMenu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.4s ease,
      transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  #mobileMenu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu-panel {
    background: linear-gradient(
      180deg,
      rgba(5, 14, 23, 0.55) 0%,
      rgba(10, 26, 46, 0.60) 100%
    );
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    /* position: relative; */
  }

  .mobile-menu-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green), var(--accent-yellow));
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.05rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.75);
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, padding-left 0.25s ease;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link:focus {
    color: white;
    padding-left: 0.35rem;
  }

  .mobile-nav-link.active {
    color: white;
  }

  .mobile-nav-link.active .mobile-nav-dot {
    opacity: 1;
    transform: scale(1);
  }

  .mobile-nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
    margin-right: 0.75rem;
  }

  .mobile-nav-chevron {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .mobile-nav-link:hover .mobile-nav-chevron {
    color: rgba(255, 255, 255, 0.5);
    transform: translateX(3px);
  }

  @keyframes mobileNavItemIn {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #mobileMenu.is-open .mobile-nav-link {
    animation: mobileNavItemIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  #mobileMenu.is-open .mobile-nav-link:nth-child(1) { animation-delay: 0.04s; }
  #mobileMenu.is-open .mobile-nav-link:nth-child(2) { animation-delay: 0.08s; }
  #mobileMenu.is-open .mobile-nav-link:nth-child(3) { animation-delay: 0.12s; }
  #mobileMenu.is-open .mobile-nav-link:nth-child(4) { animation-delay: 0.16s; }
  #mobileMenu.is-open .mobile-nav-link:nth-child(5) { animation-delay: 0.20s; }
  #mobileMenu.is-open .mobile-nav-link:nth-child(6) { animation-delay: 0.24s; }
  #mobileMenu.is-open .mobile-nav-link:nth-child(7) { animation-delay: 0.28s; }
  #mobileMenu.is-open .mobile-nav-link:nth-child(8) { animation-delay: 0.32s; }
}

/* Ensure site footer always spans full viewport width (not modal footers) */
.site-footer,
#colophon.site-footer,
footer.site-footer {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.footer-tagline {
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .footer-tagline {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .footer-tagline {
    font-size: 2.25rem;
  }
}

/* Premium Footer */
.footer-social-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social-btn:hover {
  background: rgba(20, 82, 177, 0.15);
  border-color: rgba(20, 82, 177, 0.35);
}

.footer-cta-card {
  background: linear-gradient(
    145deg,
    rgba(5, 14, 23, 0.98) 0%,
    rgba(10, 42, 77, 0.6) 50%,
    rgba(5, 14, 23, 0.98) 100%
  );
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.footer-cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent-blue),
    var(--accent-green),
    var(--accent-yellow)
  );
}

.footer-newsletter-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(20, 82, 177, 0.25);
}

.footer-col-toggle {
  -webkit-tap-highlight-color: transparent;
}

.footer-col-toggle[aria-expanded="true"] .footer-chevron {
  transform: rotate(180deg);
}

.footer-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1023px) {
  /* Accordion lists sit next to .footer-col-toggle — closed until clicked */
  .footer-col-toggle + .footer-col-links {
    display: none !important;
  }

  .footer-col-toggle + .footer-col-links.is-open {
    display: block !important;
    padding-bottom: 1rem;
    animation: fadeIn 0.35s ease;
  }

  .footer-pillar-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1rem 0.75rem;
  }

  .footer-social-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-social-btn:hover {
    background: rgba(20, 82, 177, 0.2);
    border-color: rgba(20, 82, 177, 0.4);
  }

  /* ── Join CTA banner: centered stack on phone + tablet ── */
  footer .footer-join-cta,
  footer .news {
    margin-bottom: 2.5rem;
  }

  footer .footer-join-cta-bg,
  footer .news > div:first-child {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 16px;
    overflow: hidden;
  }

  footer .footer-join-cta-card,
  footer .news .rounded-2xl {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  footer .news .grid.grid-cols-1,
  footer .footer-join-cta-inner {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.15rem;
  }

  footer .news .cta-heading,
  footer .footer-join-cta .cta-heading {
    margin-left: 0 !important;
    text-align: center;
  }

  footer .news .cta-divider,
  footer .footer-join-cta .cta-divider {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 26rem;
    margin-left: 0 !important;
    gap: 0;
  }

  footer .news .cta-divider p,
  footer .footer-join-cta .cta-divider p {
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    text-align: center !important;
    line-height: 1.7;
  }

  footer .news .cta-divider p br,
  footer .footer-join-cta .cta-divider p br {
    display: none;
  }

  footer .news .cta-button,
  footer .footer-join-cta .cta-button {
    width: 100% !important;
    max-width: 18rem;
    margin-left: 0 !important;
  }

  footer .news .grid > div:last-child,
  footer .footer-join-cta-actions {
    width: 100%;
    max-width: 26rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
  }

  footer .news .grid > div:last-child > button,
  footer .footer-join-cta-actions > button,
  footer .footer-join-cta-actions > a {
    width: 100%;
    max-width: 18rem;
    justify-content: center;
    white-space: nowrap;
  }

  footer .footer-join-cta-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  footer .news .grid > div:last-child,
  footer .footer-join-cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  footer .news .grid > div:last-child > button,
  footer .news .cta-button,
  footer .footer-join-cta-actions > button,
  footer .footer-join-cta-actions > a {
    width: auto !important;
    max-width: none;
    flex: 0 1 auto;
  }
}

/* Desktop Footer UI */
@media (min-width: 1024px) {
  .footer-main-grid .footer-col-links {
    display: block !important;
  }

  /* CTA banner: heading left → description → buttons (no text wrap) */
  footer .footer-join-cta-bg > .container-pro,
  footer .news > div > .container-pro {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }

  footer .footer-join-cta-inner,
  footer .news .grid.grid-cols-1 {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem 1.5rem;
  }

  footer .footer-join-cta-heading,
  footer .footer-join-cta-inner > div:nth-child(1):not(.cta-divider):not(.footer-join-cta-actions) {
    flex: 0 1 auto;
    min-width: 0;
  }

  footer .footer-join-cta .cta-heading,
  footer .news .cta-heading {
    margin-left: 0 !important;
    text-align: left;
  }

  footer .footer-join-cta .cta-divider,
  footer .news .cta-divider {
    flex: 1 1 14rem !important;
    min-width: 12rem;
    margin-left: 0 !important;
    justify-content: flex-start;
  }

  footer .footer-join-cta .cta-divider p,
  footer .news .cta-divider p {
    text-align: left !important;
    max-width: none;
  }

  footer .footer-join-cta-actions,
  footer .news .grid.grid-cols-1 > div:last-child {
    display: flex !important;
    flex: 0 0 auto;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-end;
    width: auto !important;
    max-width: none !important;
    gap: 0.75rem;
  }

  footer .footer-join-cta-actions > button,
  footer .footer-join-cta-actions > a,
  footer .news .grid.grid-cols-1 > div:last-child > button,
  footer .news .grid.grid-cols-1 > div:last-child > a,
  footer .footer-join-cta .cta-button,
  footer .news .cta-button {
    white-space: nowrap !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto;
    margin-left: 0 !important;
  }

  .footer-cta-card {
    padding: 0;
  }

  .footer-cta-waves {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 42%;
    max-width: 480px;
    object-fit: cover;
    object-position: left center;
    opacity: 0.9;
    pointer-events: none;
    mask-image: linear-gradient(to left, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%);
  }

  .footer-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 1px minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
  }

  .footer-cta-heading-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }

  .footer-cta-divider {
    width: 1px;
    height: 4.5rem;
    background: rgba(255, 255, 255, 0.15);
  }

  .footer-cta-desc {
    font-size: 0.8125rem;
    line-height: 1.65;
    color: rgba(209, 213, 219, 0.9);
    max-width: 16rem;
  }

  .footer-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 13.5rem;
  }

  .footer-btn-member {
    padding: 0.75rem 1.25rem;
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    border-radius: 0.5rem;
    white-space: nowrap;
  }

  .footer-btn-consult {
    padding: 0.75rem 1.25rem;
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    border-radius: 0.5rem;
    white-space: nowrap;
    border: 1px solid rgba(255, 192, 10, 0.45);
    background: rgba(0, 0, 0, 0.25);
    color: white;
  }

  .footer-btn-consult:hover {
    background: rgba(255, 192, 10, 0.1);
  }

  .footer-main-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1.35fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .footer-col-heading {
    color: #9ca3af;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    position: relative;
    display: inline-block;
  }

  .footer-col-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2rem;
    height: 2px;
    border-radius: 1px;
  }

  .footer-col-heading--blue::after { background: var(--accent-blue); }
  .footer-col-heading--green::after { background: var(--accent-green); }
  .footer-col-heading--gold::after { background: var(--accent-yellow); }

  .footer-col-links li {
    margin-bottom: 0.625rem;
  }

  .footer-col-links a {
    font-size: 0.8125rem;
    color: #d1d5db;
    transition: color 0.2s ease;
  }

  .footer-col-links a:hover {
    color: white;
  }

  .footer-brand-desc {
    font-size: 0.8125rem;
    line-height: 1.65;
    color: #9ca3af;
    margin: 1rem 0 1.25rem;
    max-width: 14rem;
  }

  .footer-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .footer-social-btn {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.7rem;
  }

  .footer-newsletter-input-wrap {
    display: flex;
    margin-top: 0.75rem;
  }

  .footer-newsletter-input-wrap input {
    border-radius: 0.375rem 0 0 0.375rem;
    border-right: none;
    font-size: 0.75rem;
    padding: 0.625rem 0.75rem;
    flex: 1;
    min-width: 0;
  }

  .footer-newsletter-input-wrap button {
    border-radius: 0 0.375rem 0.375rem 0;
    padding: 0 0.875rem;
    min-width: 2.75rem;
  }

  .footer-newsletter-mobile-card {
    display: none;
  }

  .footer-mission-section {
    position: relative;
    padding: 2.5rem 0 3rem;
    margin-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(rgba(5,14,23,0.65), rgba(5,14,23,0.65)), ;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* .footer-mission-wave {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    height: 80%;
    opacity: 0.35;
    pointer-events: none;
    object-fit: contain;
  }

  .footer-mission-wave--left {
    left: 0;
  }

  .footer-mission-wave--right {
    right: 0;
    transform: translateY(-50%) scaleX(-1);
  } */

  .footer-pillars-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 1.75rem;
  }

  .footer-pillar-item {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    text-align: center;
  }

  .footer-pillar-item .pillar-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-pillar-item p {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    font-weight: 600;
  }

  .footer-tagline-desktop {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    white-space: nowrap;
  }

  .footer-bottom-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1.5rem;
  }

  .footer-bottom-copyright {
    text-align: center;
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
  }

  .footer-bottom-legal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: #6b7280;
    justify-content: center;
  }

  .footer-bottom-legal a:hover {
    color: #d1d5db;
  }

  .footer-bottom-signoff {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #9ca3af;
  }

  .footer-bottom-signoff img {
    height: 1.75rem;
  }

  .footer-mobile-only {
    display: none !important;
  }
}

/* Reveal fallback for slow devices */
@media (max-width: 639px) {
  .reveal-up {
    opacity: 1;
    transform: none;
  }
}

/* Hero heading scale */
.hero-heading {
  font-size: 30px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.hero-line {
  display: block;
  margin-bottom: 0.1rem;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .hero-heading {
    font-size: 38px;
  }
}

@media (min-width: 768px) {
  .hero-heading {
    font-size: 48px;
  }
}

@media (min-width: 1024px) {
  .hero-heading {
    font-size: 58px;
  }
}

@media (min-width: 1280px) {
  .hero-heading {
    font-size: 68px;
  }
}

@media (min-width: 1536px) {
  .hero-heading {
    font-size: 78px;
  }
}

/* Premium Mobile Hero + Values */
@media (max-width: 639px) {
  #home {
    min-height: auto;
    padding-top: 5.5rem;
    padding-bottom: 2rem;
  }

  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    letter-spacing: 0.14em;
    line-height: 1.35;
    padding: 0.45rem 0.85rem;
    margin-bottom: 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(20, 82, 177, 0.45);
    background: rgba(20, 82, 177, 0.12);
    color: #5b9fd4;
    font-weight: 600;
    text-transform: uppercase;
  }

  .hero-heading {
    font-size: 1.875rem;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
  }

  /* About / long hero lines — keep words intact (no COMMUNI- / TIES.) */
  body.page-slug-about .hero-heading,
  body.page-template-page-about-php .hero-heading {
    font-size: clamp(1.45rem, 6.4vw, 1.85rem);
    letter-spacing: -0.02em;
  }

  body.page-slug-about .hero-heading .block,
  body.page-template-page-about-php .hero-heading .block {
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  .raw-about-stat-title,
  .raw-about-impact-card h3 {
    font-size: clamp(1.05rem, 4.6vw, 1.35rem) !important;
    line-height: 1.25;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  .raw-about-stat-sub,
  .raw-about-impact-card p {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .raw-about-impact-card {
    min-width: 0;
  }

  .hero-description {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(209, 213, 219, 0.92);
    margin-bottom: 1.5rem;
    max-width: 100%;
  }

  /* Default: stack CTAs so long labels stay on one line */
  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-actions > a,
  .hero-actions > button {
    width: 100%;
    max-width: 22rem;
    white-space: nowrap;
    justify-content: center;
  }

  /* Home only — short Explore / Join Now fit side-by-side */
  #home .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
  }

  #home .hero-actions > a,
  #home .hero-actions > button {
    width: auto;
    max-width: none;
  }

  #home .hero-actions .btn-blue,
  #home .hero-actions .btn-primary {
    padding: 0.8rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 600;
    gap: 0.35rem;
    border-radius: 9999px;
    white-space: nowrap;
  }

  #home .hero-actions .btn-blue i,
  #home .hero-actions .btn-primary i {
    font-size: 0.6rem;
  }

  .hero-social-proof {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .hero-avatar-stack .hero-avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-width: 2px;
  }

  .hero-member-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
  }

  .hero-member-sub {
    font-size: 0.625rem;
    color: rgba(156, 163, 175, 0.9);
    font-weight: 400;
  }

  .values-section-wrap {
    padding-top: 1.25rem;
    padding-bottom: 1.75rem;
  }

  .values-grid {
    gap: 0.625rem;
  }

  .value-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.625rem;
    gap: 0.5rem;
    border-radius: 1rem;
  }

  .value-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.125rem;
  }

  .value-card-icon i {
    font-size: 1rem !important;
  }

  .value-card-title {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
  }

  .value-card-desc {
    font-size: 0.6875rem;
    line-height: 1.45;
    color: rgba(156, 163, 175, 0.95);
  }
}

@media (min-width: 640px) {
  .hero-eyebrow {
    display: block;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    color: var(--accent-blue);
    font-size: 15px;
    letter-spacing: 0.05em;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 1rem;
  }

  .hero-social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
  }
}

/* Blurred navbar when mobile menu is open — stays visible, slightly dimmed */
#navbar.is-blurred {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Dim logo — still visible */
#navbar.is-blurred > div > div > a {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Dim desktop nav — still visible */
#navbar.is-blurred > div > div > nav {
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Dim mobile join now button — still visible */
#navbar.is-blurred > div > div > div > .mobile-header-cta {
  opacity: 0.3;
  pointer-events: none;
}

/* Dim theme toggle — still visible */
#navbar.is-blurred > div > div > div > .theme-toggle {
  opacity: 0.3;
  pointer-events: none;
}

/* ===============================
   Navbar Dropdown Menu
   =============================== */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(5, 14, 23, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 100;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-item {
  display: block;
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-dropdown-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}
#navbar.scrolled .nav-dropdown-menu {
  background: white;
  border-color: rgba(5, 14, 23, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
#navbar.scrolled .nav-dropdown-item {
  color: var(--text-primary);
}
#navbar.scrolled .nav-dropdown-item:hover {
  color: var(--accent-blue);
  background: rgba(20, 82, 177, 0.05);
}
body.light-hero .nav-dropdown-menu {
  background: white;
  border-color: rgba(5, 14, 23, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
body.light-hero .nav-dropdown-item {
  color: var(--text-primary);
}
body.light-hero .nav-dropdown-item:hover {
  color: var(--accent-blue);
  background: rgba(20, 82, 177, 0.05);
}
/* Dim desktop login/join buttons — still visible */
#navbar.is-blurred > div > div > div > div:last-child {
  opacity: 0.3;
  pointer-events: none;
}

/* Keep hamburger button fully visible and interactive */
#navbar.is-blurred > div > div > div > #mobileMenuBtn {
  opacity: 1 !important;
  z-index: 100 !important;
}

/* Desktop Slider Styles */
#desktopHeroSlider {
  background: var(--bg-dark);
}
.desktop-slider-slide {
  transition: opacity 0.8s ease-in-out;
  position: absolute;
  inset: 0;
  opacity: 0;
}
.desktop-slider-slide.active {
  opacity: 1 !important;
  z-index: 1;
}

.desktop-slide-content {
  transition: opacity 0.8s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.desktop-slide-content.active {
  opacity: 1 !important;
  z-index: 1;
}

.slider-dot {
  cursor: pointer;
}
.slider-dot.active {
  background: white !important;
  transform: scale(1.2);
}

/* Homepage hero — Slider Revolution host (desktop) */
.raw-home-revslider-host {
  background: var(--bg-dark);
  z-index: 1;
}
.raw-home-revslider-host > *:not(.hero-overlay):not(.hero-radial) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.raw-home-revslider-host .raw-home-revslider-wrap,
.raw-home-revslider-host .rev_slider_wrapper,
.raw-home-revslider-host rs-module-wrap,
.raw-home-revslider-host .rev_slider,
.raw-home-revslider-host rs-module,
.raw-home-revslider-host sr7-module,
.raw-home-revslider-host sr7-content,
.raw-home-revslider-host sr7-adjuster {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
}

/* ===============================
   Extra Small Screens (<= 360px)
   =============================== */
@media (max-width: 360px) {
  .hero-heading {
    font-size: 1.5rem;
  }
  .container-pro {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ===============================
   Tablet / mid screens (768–1023px)
   Fills the phone→laptop gap without
   forcing the full desktop chrome yet.
   =============================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .container-pro {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-mobile-content {
    max-width: 38rem;
  }

  .hero-mobile-content .hero-description {
    max-width: 34rem;
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .hero-mobile-content .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-mobile-content .hero-actions a,
  .hero-mobile-content .hero-actions button {
    width: auto;
    min-width: 10rem;
  }

  #home.hero-foreground {
    padding-top: 7.5rem;
    padding-bottom: 2.75rem;
    justify-content: center;
  }

  .hero-heading {
    font-size: clamp(2.25rem, 5.2vw, 3rem);
    line-height: 1.06;
  }

  .tablet-terahertz-img {
    max-height: 360px !important;
  }

  .values-grid {
    gap: 1rem;
  }

  .value-card {
    padding: 1.15rem 1.25rem;
  }

  /* Home flagship banners — less empty height on iPad portrait */
  #wellness-devices > .relative.overflow-hidden:first-of-type > .container-pro > .grid {
    min-height: 0 !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .raw-calm-loop-banner__grid {
    min-height: 0;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .raw-calm-loop-banner__img-mob {
    max-height: none;
    width: 100%;
  }

  .raw-home-more-devices {
    padding-top: 1.5rem;
    padding-bottom: 2.25rem;
  }

  /* Footer CTA stacks cleanly */
  footer .grid {
    row-gap: 1.5rem;
  }
}

/* Navbar: slightly tighter on early laptop / iPad landscape */
@media (min-width: 1024px) and (max-width: 1279px) {
  #navbar .container-pro {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #navbar .btn-primary.px-6 {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  #loginBtn {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}

/* ===============================
   Very Large Screens (>= 1920px)
   =============================== */
@media (min-width: 1920px) {
  .container-pro {
    max-width: 1600px;
  }
  .hero-heading {
    font-size: 88px;
  }
}

/* ===============================
   Ultra Large Screens (>= 2560px)
   =============================== */
@media (min-width: 2560px) {
  .container-pro {
    max-width: 2000px;
  }
  .hero-heading {
    font-size: 100px;
  }
}

/* ===============================
   Focus visibility / a11y
   =============================== */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-blue:focus-visible,
#loginBtn:focus-visible,
.theme-toggle:focus-visible,
.mobile-menu-btn:focus-visible,
.raw-back-to-top:focus-visible,
.raw-announcement-bar a:focus-visible {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 3px;
}

.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100000;
  padding: 10px 14px;
  background: var(--accent-blue);
  color: #fff;
  border-radius: 8px;
  clip: auto;
  width: auto;
  height: auto;
}

/* ===============================
   Foundation — light section seams
   =============================== */
.page-template-page-foundation-php section[style*="--bg-primary"] + section[style*="--bg-primary"],
.page-template-page-foundation-php section[style*="--bg-secondary"] + section[style*="--bg-primary"],
.page-template-page-foundation-php section[style*="--bg-primary"] + section[style*="--bg-secondary"],
.page-template-page-foundation-php section[style*="--bg-secondary"] + section[style*="--bg-secondary"],
.page-template-page-foundation-php .wpb-content-wrapper section[style*="--bg-primary"] + section[style*="--bg-primary"],
.page-template-page-foundation-php .wpb-content-wrapper section[style*="--bg-secondary"] + section[style*="--bg-primary"],
.page-template-page-foundation-php .wpb-content-wrapper section[style*="--bg-primary"] + section[style*="--bg-secondary"] {
  border-top: 1px solid #e5e7eb;
}

html.dark .page-template-page-foundation-php section[style*="--bg-primary"] + section[style*="--bg-primary"],
html.dark .page-template-page-foundation-php section[style*="--bg-secondary"] + section[style*="--bg-primary"],
html.dark .page-template-page-foundation-php section[style*="--bg-primary"] + section[style*="--bg-secondary"],
html.dark .page-template-page-foundation-php .wpb-content-wrapper section[style*="--bg-primary"] + section[style*="--bg-primary"] {
  border-top-color: rgba(255, 255, 255, 0.12);
}

/* ===============================
   Compensation — incentives (mobile-first)
   =============================== */
.raw-comp-incentive-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem 0.5rem;
}

.raw-comp-incentive-item {
  width: 4.5rem;
  text-align: center;
}

.raw-comp-incentive-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 0.4rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.raw-comp-incentive-icon i {
  font-size: 1rem;
}

.raw-comp-incentive-label {
  display: block;
  font-size: 0.65rem;
  line-height: 1.25;
  color: #e2e8f0;
}

@media (min-width: 768px) {
  .raw-comp-incentive-grid {
    gap: 1rem 1.25rem;
  }
  .raw-comp-incentive-item {
    width: 5.5rem;
  }
  .raw-comp-incentive-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.55rem;
  }
  .raw-comp-incentive-icon i {
    font-size: 1.25rem;
  }
  .raw-comp-incentive-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 639px) {
  .page-template-page-compensation-php .raw-comp-incentives-card {
    padding: 1.25rem 1rem !important;
  }
  .page-template-page-compensation-php .raw-comp-incentives-card h2 {
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
  }
}

/* ── Global CTA: keep button / pill label text on one line ── */
.btn-primary,
.btn-blue,
a.btn-primary,
a.btn-blue,
button.btn-primary,
button.btn-blue,
.raw-pdp-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.cta-button,
.hero-actions > a,
.hero-actions > button,
.xoo-wsc-ft-btn,
.raw-catalog-card a.btn-blue,
.raw-catalog-card a.btn-primary {
  white-space: nowrap;
}

/* Accordion / toggle controls may need multi-line titles */
.faq-accordion,
.footer-col-toggle,
.filter-toggle,
.cat-tab {
  white-space: normal;
}

.cat-tab span {
  white-space: nowrap;
}

/* ── Calm Loop home banner ───────────────────────────────── */
.raw-calm-loop-banner {
  min-height: 0;
  background: linear-gradient(135deg, #eef7fb 0%, #e4f1f8 40%, #f0f7fc 100%);
  border-top: none;
  border-bottom: none;
  box-shadow: none;
}

.raw-calm-loop-banner__grid {
  min-height: 0;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.raw-calm-loop-banner__img-desk {
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  height: 92%;
  width: 58%;
  object-fit: contain;
  object-position: center right;
  z-index: 1;
  clip-path: inset(1px 0 1px 0);
}

.raw-calm-loop-banner__fade-desk {
  background: linear-gradient(
    to right,
    rgba(238, 247, 251, 0.98) 0%,
    rgba(238, 247, 251, 0.9) 40%,
    rgba(238, 247, 251, 0.12) 68%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

.raw-calm-loop-banner__price {
  display: none !important;
}

.raw-calm-loop-banner__media {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  line-height: 0;
}

.raw-calm-loop-banner__img-mob {
  width: 100%;
  max-height: none;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  clip-path: none;
  border: 0;
  outline: 0;
  box-shadow: none;
}

.raw-calm-loop-banner__badges {
  margin-top: 0;
  margin-bottom: 0.75rem !important;
  position: relative;
  z-index: 3;
}

.raw-home-more-devices {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

/* Pull Calm Loop closer under TriVitalis on mobile; larger readable image */
@media (max-width: 767px) {
  #wellness-devices > .relative.overflow-hidden:first-of-type {
    min-height: 0 !important;
  }

  #wellness-devices > .relative.overflow-hidden:first-of-type > .container-pro > .grid {
    min-height: 0 !important;
    padding-top: 1.25rem !important;
    padding-bottom: 1rem !important;
  }

  #wellness-devices > .relative.overflow-hidden:first-of-type .md\:hidden[style*="height:220px"] {
    height: 150px !important;
  }

  .raw-calm-loop-banner {
    min-height: 0;
  }

  .raw-calm-loop-banner__grid {
    min-height: 0;
    padding-top: 0.85rem;
    padding-bottom: 1rem;
    gap: 0.5rem;
  }

  .raw-calm-loop-banner__copy > .mb-3 {
    margin-bottom: 0.5rem !important;
  }

  .raw-calm-loop-banner__media {
    margin-top: 0.35rem;
    margin-bottom: 0.65rem;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .raw-calm-loop-banner__img-mob {
    width: 100%;
    max-height: none;
  }

  .raw-calm-loop-banner__badges {
    margin-top: 0;
    margin-bottom: 0.65rem !important;
  }

  .raw-home-more-devices {
    padding-top: 0.85rem;
    padding-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {
  .raw-calm-loop-banner {
    min-height: 420px;
  }

  .raw-calm-loop-banner__grid {
    min-height: 420px;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* Home $15 / ₦24,000 CTA — keep 24000.png visible (not stripped by dark body rules) */
.raw-home-cta-section {
  background-color: #050e17;
  background-image:
    linear-gradient(90deg, rgba(5, 14, 23, 0.78) 0%, rgba(5, 14, 23, 0.42) 48%, rgba(5, 14, 23, 0.18) 100%),
    var(--raw-cta-bg);
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
}

html.dark .raw-home-cta-section {
  background-image:
    linear-gradient(90deg, rgba(5, 14, 23, 0.78) 0%, rgba(5, 14, 23, 0.42) 48%, rgba(5, 14, 23, 0.18) 100%),
    var(--raw-cta-bg) !important;
}


/* Powered by Deskcon Technologies branding (Task 17) */
.footer-deskon strong {
  color: var(--accent-blue);
}

/* Logged-in public nav profile (circular icon + first name under it) */
.raw-nav-profile {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-decoration: none !important;
  padding: 0.1rem 0.3rem;
  border-radius: 12px;
  transition: background 0.2s ease;
  min-width: 48px;
  align-self: center;
  line-height: 1;
  margin-top: 4px;
}
.raw-nav-profile:hover {
  background: rgba(255,255,255,0.08);
}
.raw-nav-profile__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #1452b1, #42841f);
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  color: #fff;
  font-size: 0.85rem;
}
.raw-nav-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.raw-nav-profile__name {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.raw-nav-profile__role {
  display: none;
}
.raw-nav-profile--mobile {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.raw-nav-profile--mobile .raw-nav-profile__avatar {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}
.raw-nav-profile--mobile .raw-nav-profile__name {
  max-width: none;
  font-size: 0.9rem;
  text-align: left;
}
/* Scrolled / light chrome: readable name */
html:not(.dark) #navbar.scrolled .raw-nav-profile__name,
html:not(.dark) body.raw-nav-scrolled #navbar .raw-nav-profile__name,
html:not(.dark) body.light-hero #navbar .raw-nav-profile__name {
  color: #050e17;
}
html:not(.dark) #navbar.scrolled .raw-nav-profile__avatar,
html:not(.dark) body.light-hero #navbar .raw-nav-profile__avatar {
  border-color: rgba(5, 14, 23, 0.22);
}
html:not(.dark) #navbar.scrolled .raw-nav-profile:hover,
html:not(.dark) body.light-hero #navbar .raw-nav-profile:hover {
  background: rgba(5, 14, 23, 0.06);
}
@media (min-width: 1024px) {
  .raw-nav-profile {
    min-height: 40px;
  }
}
