/* Nexara — light-touch polish layer
   Preserves original Webflow look. Adds: Live Demo pill, scroll-reveal,
   subtle hover, dashboard embed section. Tuned for mobile + laptop. */

html { scroll-behavior: smooth; }

/* ---------- White text → Nexara azure blue ----------
   Webflow uses `.text-color-white` to color hero/section text white.
   Recolor it to the Nexara azure brand blue per request. */
.text-color-white,
.text-color-white .heading-style-h1,
.text-color-white .heading-style-h2,
.text-color-white .heading-style-h3,
.text-color-white p,
.text-color-white span {
  color: #0a84ff;
}

/* ---------- Fix: color-scheme-1 had white text on white background ----------
   The original Webflow theme set both `--color-scheme-1--background` AND
   `--color-scheme-1--text` to white, making body text in those sections
   invisible (e.g. the "Customer messages / Appointments / Follow ups /
   Internal tasks" cards on the homepage). Force readable text color
   for sections using color-scheme-1, while preserving any explicit
   `.text-color-white` opt-in. */
.color-scheme-1 {
  --color-scheme-1--text: #0b1220;
  color: #0b1220;
}
.color-scheme-1 h1,
.color-scheme-1 h2,
.color-scheme-1 h3,
.color-scheme-1 h4,
.color-scheme-1 h5,
.color-scheme-1 h6,
.color-scheme-1 p,
.color-scheme-1 .heading-style-h1,
.color-scheme-1 .heading-style-h2,
.color-scheme-1 .heading-style-h3,
.color-scheme-1 .heading-style-h4,
.color-scheme-1 .heading-style-h5,
.color-scheme-1 .heading-style-h6,
.color-scheme-1 .text-size-medium,
.color-scheme-1 .text-size-large,
.color-scheme-1 .text-size-regular,
.color-scheme-1 .text-style-tagline {
  color: #0b1220;
}
/* Body copy a touch softer than headings for visual hierarchy */
.color-scheme-1 p,
.color-scheme-1 .text-size-medium {
  color: #3a4150;
}
/* Re-honor explicit white opt-in if used inside color-scheme-1 */
.color-scheme-1 .text-color-white,
.color-scheme-1 .text-color-white * {
  color: #0a84ff;
}

/* ---------- Live Demo nav pill ----------
   Lives in .navbar7_container next to the Book button so it stays
   visible on every breakpoint (the .navbar7_menu collapses into a
   hamburger panel at ≤991px). */
.nx-live-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  margin-right: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
  white-space: nowrap;
}
.nx-live-demo::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: nx-pulse 2s infinite;
}
@media (hover: hover) and (pointer: fine) {
  .nx-live-demo:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.36);
    transform: translateY(-1px);
  }
}
@keyframes nx-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94, 0); }
}
/* On phones, shrink type but keep tap target ≥ 44px (WCAG / Apple HIG) */
@media (max-width: 479px) {
  .nx-live-demo {
    padding: 0.7rem 0.8rem;
    font-size: 0.78rem;
    margin-right: 0.35rem;
    min-height: 44px;
    gap: 0.35rem;
  }
  .nx-live-demo::before { width: 5px; height: 5px; }
}

/* ---------- Mobile nav declutter ----------
   On phones the top bar was cramming Logo + Services + About + Live Demo +
   Book + hamburger into one row. At ≤767px we hide the inline Services/About
   (they're mirrored into the hamburger panel by JS), shrink the logo, and
   tighten the Book button so everything breathes. */
@media (max-width: 767px) {
  /* Hide inline Services/About — accessible via hamburger */
  .navbar7_menu-left { display: none !important; }

  /* Shrink the logo so the title bar isn't dominated by it */
  .navbar7_logo {
    width: 80px !important;
    height: auto !important;
    max-height: 48px;
    object-fit: contain;
  }

  /* Tighter container padding + gap */
  .navbar7_container {
    padding-left: 14px;
    padding-right: 10px;
    gap: 0.4rem;
  }

  /* Compact Book button so it sits comfortably next to the pill + hamburger,
     while preserving 44px tap target. */
  .navbar7_container .button.is-small.w-button {
    padding: 0.7rem 0.9rem;
    font-size: 0.82rem;
    min-height: 44px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
  }

  /* Hamburger button: don't let it grow too wide; keep 44px target */
  .navbar7_menu-button {
    padding: 0.6rem;
    margin-left: 0.1rem;
    min-width: 44px;
    min-height: 44px;
  }
}

/* Even tighter on small phones (≤380px e.g. iPhone SE 1st gen) */
@media (max-width: 380px) {
  .navbar7_logo { width: 68px !important; max-height: 42px; }
  .nx-live-demo {
    padding: 0.65rem 0.65rem;
    font-size: 0.72rem;
    margin-right: 0.25rem;
    min-height: 44px;
  }
  .navbar7_container .button.is-small.w-button {
    padding: 0.65rem 0.75rem;
    font-size: 0.78rem;
    min-height: 44px;
  }
}

/* ---------- Hamburger panel: dark background + white links ----------
   Webflow's mobile menu panel defaults to a white background which
   clashes with the dark site theme and made white-link styling
   impossible. Re-skin the panel to match the dark navbar (color-scheme-2)
   so links can be white per request. */
@media (max-width: 991px) {
  .navbar7_menu {
    background-color: #050505 !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  }
}

/* ---------- Hamburger menu links ----------
   The JS injects a fixed set: Services, Pricing, Book demo, About.
   Hidden at desktop (the panel is an inline strip there); only shown
   inside the hamburger panel at ≤991px. Rendered in Nexara azure blue. */
.nx-mobile-link { display: none; }
@media (max-width: 991px) {
  .navbar7_menu a,
  .navbar7_menu .nx-mobile-link {
    color: #0a84ff !important;
    text-decoration: none;
  }
  .navbar7_menu .nx-mobile-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 180ms ease, padding-left 180ms ease;
    min-height: 44px;
  }
  .navbar7_menu .nx-mobile-link:last-child { border-bottom: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .navbar7_menu .nx-mobile-link:hover {
    color: #ffffff !important;
    padding-left: 4px;
  }
}

/* ---------- Subtle polish (hover effects only on non-touch) ---------- */
.button,
.w-button {
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .w-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45);
    filter: brightness(1.05);
  }
  .layout25_image-wrapper img,
  .layout419_image-wrapper img {
    transition: transform 600ms cubic-bezier(.2,.7,.2,1);
  }
  .layout25_image-wrapper:hover img,
  .layout419_image-wrapper:hover img {
    transform: scale(1.015);
  }
}

/* ---------- Scroll-reveal ---------- */
.nx-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1),
              transform 700ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.nx-reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .nx-reveal { opacity: 1; transform: none; transition: none; }
  .nx-live-demo::before { animation: none; }
}

/* ---------- Dashboard embed section ---------- */
.nx-dashboard-section {
  position: relative;
  padding: 5rem 1.5rem 6rem;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(77, 101, 255, 0.18), transparent 60%),
    #050505;
  color: #fff;
  overflow: hidden;
}
.nx-dashboard-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.nx-dashboard-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.25rem;
}
.nx-dashboard-title {
  font-size: clamp(1.6rem, 4.2vw, 2.75rem);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}
.nx-dashboard-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.55;
}
.nx-dashboard-frame-wrap {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px -30px rgba(77, 101, 255, 0.45),
              0 10px 30px -10px rgba(0,0,0,0.6);
  overflow: hidden;
}
.nx-dashboard-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nx-dashboard-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  flex: none;
}
.nx-dashboard-bar span:nth-child(1) { background: #ff5f57; }
.nx-dashboard-bar span:nth-child(2) { background: #febc2e; }
.nx-dashboard-bar span:nth-child(3) { background: #28c840; }
.nx-dashboard-url {
  margin-left: 0.6rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nx-dashboard-frame {
  display: block;
  width: 100%;
  height: clamp(520px, 70vh, 760px);
  border: 0;
  background: #0b1220;
}
.nx-dashboard-cta {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: #fff;
  color: #0b1220;
  font-weight: 600;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nx-dashboard-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -12px rgba(255,255,255,0.35);
  }
}

/* Tablet */
@media (max-width: 991px) {
  .nx-dashboard-section { padding: 4rem 1.25rem 4.5rem; }
  .nx-dashboard-frame { height: clamp(480px, 65vh, 640px); }
}

/* Phone */
@media (max-width: 640px) {
  .nx-dashboard-section { padding: 3rem 0.9rem 3.5rem; }
  .nx-dashboard-eyebrow { font-size: 0.7rem; }
  .nx-dashboard-sub { margin-bottom: 1.5rem; }
  .nx-dashboard-frame-wrap { border-radius: 12px; }
  .nx-dashboard-bar { padding: 0.5rem 0.7rem; }
  .nx-dashboard-url { font-size: 0.7rem; }
  .nx-dashboard-frame { height: 540px; }
  .nx-dashboard-cta {
    margin-top: 1.4rem;
    padding: 0.75rem 1.2rem;
    font-size: 0.95rem;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .nx-dashboard-bar span { width: 8px; height: 8px; }
  .nx-dashboard-url { display: none; }
  .nx-dashboard-frame { height: 480px; }
}

/* ---------- Tap target tuning on phones ---------- */
@media (max-width: 479px) {
  .button,
  .w-button {
    min-height: 44px; /* WCAG / Apple HIG minimum tap target */
  }
}

/* ---------- Mobile typography breathing room ----------
   Original Webflow rules pack the hero/headings tight on small screens
   (line-height: 1.1, padding 2rem against a full-bleed image, and a
   bug where h1 grows to 3rem at ≤479px). These rules give text room
   to breathe without changing the desktop look. */

/* Tablet & below */
@media (max-width: 991px) {
  .heading-style-h1 {
    line-height: 1.15;
    letter-spacing: -0.02em;
  }
  .heading-style-h2 {
    line-height: 1.2;
    letter-spacing: -0.015em;
  }
  .heading-style-h3 {
    line-height: 1.25;
  }
  /* More room around the hero card */
  .header98_card {
    padding: 2.5rem 1.75rem;
  }
  .header98_card-content .max-width-large {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  /* Slightly more space between heading and subtext */
  .margin-bottom.margin-small { margin-bottom: 1.25rem; }
  .margin-top.margin-medium { margin-top: 1.75rem; }
  /* Body text comfort */
  .text-size-medium { line-height: 1.6; }
  /* Button group wraps cleanly */
  .button-group { gap: 0.75rem; row-gap: 0.85rem; flex-wrap: wrap; }
}

/* Phone */
@media (max-width: 767px) {
  .heading-style-h1 {
    font-size: 2.25rem;       /* down from 2.5rem — easier to scan */
    line-height: 1.2;
    letter-spacing: -0.015em;
  }
  .heading-style-h2 {
    font-size: 2rem;
    line-height: 1.22;
  }
  .text-size-medium {
    font-size: 1.0625rem;
    line-height: 1.6;
  }
  .header98_card {
    padding: 2.25rem 1.5rem;
    min-height: 28rem;        /* less giant on phones */
  }
  /* Buttons shouldn't sit shoulder-to-shoulder on phones */
  .button-group.is-center { justify-content: center; }
  /* Section vertical breathing */
  .padding-section-large { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .padding-section-medium { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* Small phone — undo Webflow's accidental h1 size bump at ≤479px */
@media (max-width: 479px) {
  .heading-style-h1 {
    font-size: 2rem !important;
    line-height: 1.22;
  }
  .heading-style-h2 {
    font-size: 1.75rem !important;
    line-height: 1.25;
  }
  .heading-style-h3 {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }
  .text-size-medium {
    font-size: 1rem;
    line-height: 1.6;
  }
  .header98_card {
    padding: 2rem 1.25rem;
    min-height: 26rem;
  }
  /* Stack and full-width CTAs on small phones */
  .button-group.is-center {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .button-group.is-center .w-button,
  .button-group.is-center .button {
    width: 100%;
    text-align: center;
  }
  .padding-global { padding-left: 1rem; padding-right: 1rem; }
}
