:root {
  --page-bg: #f3f4f8;
  --page-bg-alt: #ffffff;
  --border-subtle: #e2e6f0;
  --border-strong: #c3cadc;
  --text-main: #101827;
  --text-muted: #6b7280;
  --accent: #ff7a1a;
  --accent-dark: #e36400;
  --accent-soft: rgba(255, 122, 26, 0.12);
  --accent-soft-bg: #fff7f0;
  --nav-bg: #ffffff;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.06);
  --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.14);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--page-bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Layout / container */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.brand-logo {
  height: 60px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav-list {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding-bottom: 0.25rem;
  position: relative;
  text-decoration: none;
}
.nav-link:hover {
  color: var(--text-main);
}
.nav-link.active {
  color: var(--accent);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.18rem;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

/* Modern nav "button" style */
.nav-link--button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
  margin-bottom: 0;
}
.nav-link--button::after {
  display: none;
}
.nav-link--button:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: var(--border-subtle);
  text-decoration: none;
}
.nav-link--button.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(255, 122, 26, 0.35);
}
.nav-link--button.active:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(255, 122, 26, 0.45);
}

/* Main */
main {
  padding: 2.4rem 0 3.6rem;
}

/* Hero - home */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.15fr);
  gap: 2.6rem;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.hero-title {
  font-size: 2.5rem;
  line-height: 1.1;
  margin: 0;
}
.hero-highlight {
  color: var(--accent-dark);
}
.hero-body {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-meta strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Hero panel */
.hero-panel-wrapper {
  background: linear-gradient(145deg, #ffffff, var(--accent-soft-bg));
  border-radius: 26px;
  padding: 0.18rem;
  box-shadow: var(--shadow-strong);
}
.hero-panel {
  border-radius: 24px;
  padding: 1.5rem 1.6rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
}
.hero-panel-sub {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
}
.hero-panel-title {
  margin: 0.45rem 0 0.7rem;
  font-size: 1.08rem;
}
.hero-panel-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Steps inside hero panel */
.hero-panel-steps {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.hero-panel-step h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}
.hero-panel-step p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Section generic */
.section {
  margin-top: 3rem;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.8rem;
  margin-bottom: 1.4rem;
}
.section-title {
  margin: 0;
  font-size: 1.5rem;
}
.section-lead {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 30rem;
}

/* Pills */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.pill-small {
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  background: #e9ecff;
  color: #3f51b5;
}

/* Grid / tiles */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.tile {
  background: var(--page-bg-alt);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}
.tile-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--accent-dark);
  margin-bottom: 0.4rem;
}
.tile-title {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}
.tile-body {
  margin: 0;
  color: var(--text-muted);
}

/* CTA strip */
.cta-strip {
  margin-top: 3rem;
  background: var(--page-bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}
.cta-strip-title {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}
.cta-strip-body {
  margin: 0;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--text-main);
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(255, 122, 26, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(255, 122, 26, 0.45);
}
.btn-secondary {
  border-color: var(--border-subtle);
  background: #ffffff;
  color: var(--text-main);
}
.btn-secondary:hover {
  background: #eef1ff;
  border-color: var(--border-strong);
}

/* Forms */
.card-form {
  background: var(--page-bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.label {
  font-size: 0.86rem;
  color: var(--text-main);
}
.input,
.textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  background: #f9fafb;
  color: var(--text-main);
}
.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
}
.textarea {
  resize: vertical;
  min-height: 140px;
}
.form-footer {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 1.4rem 0 2rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Chat widget */
#nxtchat-toggle {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.32);
  z-index: 60;
  font-size: 1.5rem;
}

#nxtchat-widget {
  position: fixed;
  bottom: 5.1rem;
  right: 1.3rem;
  width: 340px;
  max-height: 480px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  z-index: 55;
}
#nxtchat-widget.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Chat bubbles */
#nxtchat-messages {
  padding: 0.75rem 0.7rem 0.85rem;
  overflow-y: auto;
  flex: 1;
  font-size: 0.86rem;
  background: #f9fafb;
}
.nxtchat-bubble {
  max-width: 80%;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  margin-bottom: 0.45rem;
  line-height: 1.4;
  white-space: pre-wrap;
}
.nxtchat-bubble.user {
  margin-left: auto;
  background: var(--accent);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}
.nxtchat-bubble.assistant {
  margin-right: auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: var(--text-main);
  border-bottom-left-radius: 2px;
}

/* Input row */
.nxtchat-input-row {
  border-top: 1px solid var(--border-subtle);
  padding: 0.5rem;
  display: flex;
  gap: 0.4rem;
  background: #ffffff;
}
#nxtchat-input {
  flex: 1;
  border-radius: var(--radius-pill);
  border: 1px solid #d4d7e3;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-family: var(--font-sans);
}
#nxtchat-input:focus {
  outline: none;
  border-color: var(--accent);
}
#nxtchat-send {
  border-radius: var(--radius-pill);
  border: none;
  padding: 0 0.9rem;
  font-size: 0.85rem;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-weight: 500;
}

/* Floating WhatsApp button */
#whatsapp-float {
  position: fixed;
  bottom: 1.4rem;
  right: 5.2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.32);
  z-index: 59;
  text-decoration: none;
}
#whatsapp-float:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

/* === Global dark theme === */
body.site-dark,
body.home-dark {
  background: #020617;
  color: #e5e7eb;
}

body.site-dark .hero-title,
body.home-dark .hero-title,
body.site-dark .section-title,
body.home-dark .section-title,
body.site-dark .cta-strip-title,
body.home-dark .cta-strip-title {
  color: #f9fafb;
}

body.site-dark .hero-body,
body.home-dark .hero-body,
body.site-dark .section-lead,
body.home-dark .section-lead,
body.site-dark .tile-body,
body.home-dark .tile-body,
body.site-dark .cta-strip-body,
body.home-dark .cta-strip-body,
body.site-dark .hero-meta,
body.home-dark .hero-meta,
body.site-dark .hero-panel-body,
body.home-dark .hero-panel-body {
  color: #cbd5f5;
}

body.site-dark main,
body.home-dark main {
  padding-top: 2.8rem;
}

/* Orange glow panels */
body.site-dark .glow-panel,
body.home-dark .glow-panel,
body.site-dark .hero-panel,
body.home-dark .hero-panel,
body.site-dark .tile,
body.home-dark .tile,
body.site-dark .cta-strip,
body.home-dark .cta-strip,
body.site-dark .card-form,
body.home-dark .card-form {
  background: radial-gradient(circle at top left, rgba(255, 122, 26, 0.08), #020617);
  border-radius: 20px;
  border: 1px solid rgba(255, 122, 26, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 122, 26, 0.4),
    0 0 35px rgba(255, 122, 26, 0.55);
}

/* Dark variant for specific panels */
body.site-dark .tile--dark,
body.home-dark .tile--dark,
body.site-dark .hero-panel--dark,
body.home-dark .hero-panel--dark,
body.site-dark .cta-strip--dark,
body.home-dark .cta-strip--dark {
  background: radial-gradient(circle at top left, rgba(255, 122, 26, 0.04), #020617);
}

/* Eyebrows/tags on dark */
body.site-dark .hero-eyebrow,
body.home-dark .hero-eyebrow,
body.site-dark .tile-tag,
body.home-dark .tile-tag {
  color: rgba(255, 255, 255, 0.75);
}

/* DARK THEME FORM FIXES */
body.site-dark .label {
  color: #e5e7eb;
}
body.site-dark .input,
body.site-dark .textarea {
  background: #020617;
  color: #f9fafb;
  border-color: #475569;
}
body.site-dark .input::placeholder,
body.site-dark .textarea::placeholder {
  color: #9ca3af;
}
body.site-dark .form-footer {
  color: #cbd5f5;
}

/* Footer on dark pages */
body.site-dark .site-footer,
body.home-dark .site-footer {
  background: #020617;
  border-top-color: #111827;
  color: #9ca3af;
}
body.site-dark .site-footer a,
body.home-dark .site-footer a {
  color: #f97316;
}

/* Keep header/nav white so logo pops */
body.site-dark .site-header,
body.home-dark .site-header {
  background: #ffffff;
}

/* Chat widget tweaks for dark pages */
body.site-dark #nxtchat-widget,
body.home-dark #nxtchat-widget {
  background: #020617;
}
body.site-dark .nxtchat-bubble.assistant,
body.home-dark .nxtchat-bubble.assistant {
  background: #020617;
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .nav-list { display: none; }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  #nxtchat-widget { right: 0.8rem; width: calc(100% - 1.6rem); }
  #whatsapp-float { right: 4.8rem; }
}

/* ===== CRITICAL FIXES (20251214b) ===== */

/* 1) FORCE ALL PILLS ORANGE (fixes ANY white pills anywhere) */
.pill-small,
.pill-row .pill-small,
.pill-row span.pill-small,
.pill-row span {
  background: rgba(255, 122, 26, 0.14) !important;
  color: #f97316 !important;
  border: 1px solid rgba(255, 122, 26, 0.40) !important;
}

/* Dark pages pills */
body.site-dark .pill-small,
body.home-dark .pill-small,
body.site-dark .pill-row span,
body.home-dark .pill-row span {
  background: rgba(255, 122, 26, 0.16) !important;
  color: #fb923c !important;
  border: 1px solid rgba(255, 122, 26, 0.45) !important;
}

/* 2) MAKE "HOW WE HELP" HALO MATCH DARK GLOW (no white halo) */
body.site-dark .hero-panel-wrapper,
body.home-dark .hero-panel-wrapper {
  background: radial-gradient(circle at top left, rgba(255, 122, 26, 0.12), #020617) !important;
  border-radius: 26px !important;
  padding: 0.28rem !important;
  box-shadow:
    0 0 0 1px rgba(255, 122, 26, 0.40),
    0 0 40px rgba(255, 122, 26, 0.55) !important;
}

/* ensure inner panel stays consistent */
body.site-dark .hero-panel,
body.home-dark .hero-panel {
  background: radial-gradient(circle at top left, rgba(255, 122, 26, 0.06), #020617) !important;
  border: 1px solid rgba(255, 122, 26, 0.45) !important;
}

/* Mobile menu */
.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background:#ffffff;
  color: var(--text-main);
  font-size: 1.2rem;
  cursor:pointer;
}
.mobile-nav{
  display:none;
  position:absolute;
  right: 1.6rem;
  top: 74px;
  width: min(360px, calc(100vw - 3.2rem));
  background:#ffffff;
  border:1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-strong);
  padding: 0.6rem;
  z-index: 80;
}
.mobile-nav a{
  display:block;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  color: var(--text-main);
  text-decoration:none;
  font-size: 0.92rem;
}
.mobile-nav a:hover{
  background: rgba(15, 23, 42, 0.05);
  text-decoration:none;
}
.mobile-nav.open{ display:block; }

@media (max-width: 780px){
  .nav-toggle{ display:inline-flex; }
  .nav{ position:relative; }
}

/* ===== NXT BOT HEADER ALIGNMENT FIX (20251214c) ===== */

/* Header bar layout */
.nxtchat-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0.75rem;
  padding:0.7rem 0.75rem;
  border-bottom:1px solid rgba(226,230,240,0.9);
  background:#ffffff;
  color: var(--text-main);
}

/* Title/subtitle block */
.nxtchat-header > div{
  display:flex;
  flex-direction:column;
  gap:0.1rem;
  min-width:0;
}

/* Make the subtitle sit nicely + not drift */
.nxtchat-header strong{
  display:block;
  line-height:1.1;
  font-size:0.98rem;
}
.nxtchat-header span{
  display:block;
  line-height:1.2;
  font-size:0.8rem;
  color: var(--text-muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Close button alignment */
#nxtchat-close{
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  border: 1px solid rgba(226,230,240,0.9) !important;
  background: transparent !important;
  color: inherit !important;
  cursor:pointer;
  flex:0 0 auto;
}

/* Dark mode header */
body.site-dark .nxtchat-header,
body.home-dark .nxtchat-header{
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
  color:#ffffff !important;
  border-bottom:1px solid rgba(255,255,255,0.25) !important;
}
body.site-dark .nxtchat-header span,
body.home-dark .nxtchat-header span{
  color: rgba(255,255,255,0.9) !important;
}
body.site-dark #nxtchat-close,
body.home-dark #nxtchat-close{
  border-color: rgba(255,255,255,0.35) !important;
  color:#ffffff !important;
}

/* === NXT BOT HEADER FIX (ORANGE THEME) === */
#nxtchat-widget .nxtchat-header {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

/* Left side text container */
#nxtchat-widget .nxtchat-header > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.2;
}

/* Title */
#nxtchat-widget .nxtchat-header strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

/* Subtitle */
#nxtchat-widget .nxtchat-header span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Close button */
#nxtchat-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.15);
  color: #ffffff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

#nxtchat-close:hover {
  background: rgba(0, 0, 0, 0.25);
  transform: scale(1.05);
}
/* ===== NXT BOT MOBILE SIZE FIX (ONLY) ===== */
/* Covers phones + small tablets, and uses iOS-friendly viewport units */

@media (max-width: 980px), (max-height: 820px) {
  #nxtchat-widget {
    width: min(320px, calc(100vw - 1.6rem)) !important;
    max-width: min(320px, calc(100vw - 1.6rem)) !important;

    /* Height: keep it sensible on mobile */
    height: auto !important;
    max-height: calc(100dvh - 9rem) !important; /* iOS safe */
  }
}