/* Nuvelo Fixes v4 - SVG Checkmarks */

/* Kill any broken content::before */
.service-feature::before,
.feature-item::before,
.check-item::before,
.feat::before {
  content: "" !important;
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  margin-right: 8px !important;
}
.service-feature::before, .feature-item::before, .check-item::before, .feat::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8ff3c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") !important; }
/* MOBILE FIXES */
html, body { overflow-x: hidden !important; }

@media (max-width: 768px) {
  .hero { padding: 100px 1.25rem 3.5rem !important; text-align: center !important; }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 3rem) !important; }
  .hero-ctas { flex-direction: column !important; align-items: center !important; gap: 1rem !important; }
  .hero-visual, .score-float, .hero-float { display: none !important; }
  .services-grid, .pricing-grid, .case-grid, .contact-grid, .process-steps, .what-we-build, .pain-grid, .steps-grid, .values-grid { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  section { padding: 3.5rem 1.25rem !important; }
  .container { padding: 0 1.25rem !important; }
  input, textarea, select { font-size: 16px !important; }
  .pricing-card.featured, .pricing-card.popular { transform: none !important; }
  table { display: block !important; overflow-x: auto !important; }
  h2 { font-size: clamp(1.6rem, 5vw, 2.2rem) !important; }
  .nav-links { display: none; position: fixed; inset: 0; background: rgba(10,10,8,0.97); z-index: 9999; flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem; padding: 5rem 2rem 2rem; }
  .nav-links.open { display: flex !important; }
  .nav-toggle { display: flex !important; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2rem) !important; }
  .stats-grid { grid-template-columns: 1fr !important; }
}

/* === DROPDOWN HOVER GAP FIX === */

/* Use opacity/visibility instead of display:none so we can transition */
.nav-dropdown-menu {
  display: block !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(6px) !important;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease !important;
  /* Remove gap between trigger and menu */
  top: 100% !important;
  margin-top: 0 !important;
  padding-top: 12px !important;  /* invisible bridge area */
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* Bridge pseudo-element ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ fills the gap so hovering into menu keeps it open */
.nav-dropdown::after {
  content:  !important;
  position: absolute !important;
  top: 100% !important;
  left: -20px !important;
  right: -20px !important;
  height: 16px !important;   /* covers the gap */
  background: transparent !important;
  display: block !important;
}

/* Make the dropdown trigger area larger/easier to hit */
.nav-dropdown > a,
.nav-dropdown > button,
.nav-dropdown-toggle {
  padding-bottom: 12px !important;
}


/* === TOOLS GRID ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ base display:grid (main.css only defines it in media queries) === */
.tools-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}
@media (max-width: 900px) {
  .tools-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 600px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* === DROPDOWN CENTER ALIGNMENT === */
.nav-dropdown { position: relative !important; }
.nav-dropdown-menu {
  left: 50% !important;
  transform: translateX(-50%) translateY(10px) !important;
  min-width: 640px !important;
}
.nav-dropdown:hover .nav-dropdown-menu {
  transform: translateX(-50%) translateY(0) !important;
}

/* === MOBILE: page inner grids collapse === */
@media (max-width: 900px) {
  /* 3-col -> 1-col on tablets */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* 5-col process -> scroll */
  [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* 2-col case studies -> 1-col */
  [style*="grid-template-columns:repeat(2,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* Hero 2-col layout */
  [style*="grid-template-columns:1fr 420px"],
  [style*="grid-template-columns:1fr 460px"] {
    grid-template-columns: 1fr !important;
  }
  /* page hero stats row */
  .page-hero [style*="display:flex;gap:3rem"] {
    gap: 1.5rem !important;
    justify-content: space-around !important;
  }
  /* Score card in hero on mobile ÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ hide */
  .page-hero [style*="animation:float"] {
    display: none !important;
  }
}
@media (max-width: 600px) {
  /* 4-col -> 2-col on small phones */
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2,1fr) !important;
  }
  /* Price plans 3-col -> 1-col */
  [style*="max-width:960px"][style*="grid-template-columns:repeat(3,1fr)"],
  [style*="max-width:900px"][style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* Hero text-align */
  .page-hero .container { text-align: center !important; }
  .page-hero .hero-badge { margin-inline: auto !important; }
  .page-hero [style*="display:flex;gap:1rem"] {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
}

/* === SERVICES GRID: force 3-col so 6 cards = clean 3x2, not broken 4+2 === */
.services-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr !important; }
}

/* === CONTAINER: 1320px for more breathing room === */
.container { max-width: 1320px !important; }

/* === MOBILE SERVICES TOGGLE === */
.mobile-services-toggle {
  background: none !important;
  border: none !important;
  color: var(--text) !important;
  font-size: 1.125rem !important;
  font-weight: 500 !important;
  padding: 16px 0 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  text-align: left !important;
}
.mobile-sub-group { margin-bottom: 0.5rem !important; }
.mobile-sub-group .mobile-sub {
  padding: 10px 0 !important;
  font-size: 1rem !important;
  color: var(--text-muted) !important;
  border: none !important;
}

/* mobile-menu override moved to MOBILE MENU: clean professional section below */

/* === MOBILE MENU: clean professional layout === */
.mobile-menu {
  display: none !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.25rem !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  background: rgba(10,10,8,0.97) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  padding: 2rem !important;
  overflow-y: auto !important;
}
.mobile-menu.open {
  display: flex !important;
}
.mobile-menu a {
  font-size: 1.375rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  padding: 0.625rem 1rem !important;
  text-align: center !important;
  width: auto !important;
  border: none !important;
  display: block !important;
  transition: color 0.15s !important;
}
.mobile-menu a:hover { color: var(--lime) !important; }
/* Close button */
.mob-close-btn {
  position: absolute !important;
  top: 1.25rem !important;
  right: 1.25rem !important;
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: var(--text) !important;
  transition: background 0.15s !important;
}
.mob-close-btn:hover { background: rgba(255,255,255,0.15) !important; }
/* Services toggle button in mobile menu */
.mob-svc-toggle {
  background: none !important;
  border: none !important;
  color: var(--text) !important;
  font-size: 1.375rem !important;
  font-weight: 600 !important;
  padding: 0.625rem 1rem !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  width: auto !important;
  transition: color 0.15s !important;
}
.mob-svc-toggle:hover { color: var(--lime) !important; }

/* === MOBILE MENU: Book a Call button text + misc fixes === */
.mobile-menu .btn-primary {
  color: #0a0a08 !important;
  background: var(--lime) !important;
  font-weight: 800 !important;
}
.mobile-menu .btn-primary:hover {
  background: #a3e635 !important;
  color: #0a0a08 !important;
}
/* Hamburger 3-line icon — keep it from getting stuck in X state */
.hamburger:not(.active) span:nth-child(1) { transform: none !important; top: 0 !important; }
.hamburger:not(.active) span:nth-child(2) { opacity: 1 !important; }
.hamburger:not(.active) span:nth-child(3) { transform: none !important; top: 0 !important; }

/* === CLS FIX: hero H1 min-height prevents layout shift from typewriter === */
.hero-title {
  min-height: 5.5rem;
}
@media (max-width: 768px) {
  .hero-title { min-height: 4rem; }
}

/* === MOBILE STATS BAR: 2x2 grid with card styling === */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
  }
  .stat-item {
    padding: 1.5rem 1rem !important;
    border-right: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
    text-align: center !important;
  }
  .stat-item:nth-child(even) {
    border-right: none !important;
  }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none !important;
  }
  .stat-number {
    font-size: clamp(2rem,8vw,2.75rem) !important;
  }
}

/* === WhatsApp tooltip === */
/* WhatsApp tooltip */
a[title*="WhatsApp"]::before {
  content: attr(title);
  position: absolute;
  right: 70px;
  bottom: 50%;
  transform: translateY(50%);
  background: #0a0a08;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
}
a[title*="WhatsApp"]:hover::before { opacity: 1; }

/* === MOBILE: all inner page 2-col hero grids collapse to 1-col === */
@media (max-width: 900px) {
  [style*="grid-template-columns:1fr 400px"],
  [style*="grid-template-columns:1fr 380px"],
  [style*="grid-template-columns:1fr 420px"],
  [style*="grid-template-columns:1fr 360px"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  /* Hide the right-side pain card / score card on mobile — save space */
  .page-hero [style*="grid-template-columns:1fr 4"] > *:nth-child(2),
  [style*="grid-template-columns:1fr 4"] > *:nth-child(2)[style*="background:var(--surface)"],
  [style*="grid-template-columns:1fr 3"] > *:nth-child(2)[style*="background:var(--surface)"] {
    display: none !important;
  }
}
@media (max-width: 600px) {
  /* Also collapse the about page hero */
  [style*="grid-template-columns:1fr 380px"],
  [style*="grid-template-columns:1fr 400px"] {
    grid-template-columns: 1fr !important;
  }
}

/* === MOBILE: compact emergency strip === */
@media (max-width: 768px) {
  /* Emergency strip in page content */
  [style*="background:rgba(239,68,68,0.06)"] .container {
    flex-direction: column !important;
    gap: 0.75rem !important;
    padding-top: 0.875rem !important;
    padding-bottom: 0.875rem !important;
    text-align: center !important;
  }
  [style*="background:rgba(239,68,68,0.06)"] .container > span:last-child {
    display: none !important;
  }
  /* Emergency sticky bar (emBar) — compact on mobile */
  #emBar > div {
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 0.625rem 1rem !important;
    text-align: center !important;
  }
  #emBar span { font-size: 0.8rem !important; }
  /* Email capture bar — better mobile layout */
  #emailCapBar > div {
    flex-direction: column !important;
    gap: 0.625rem !important;
    text-align: center !important;
  }
  #emailCapBar form {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }
  #emailCapBar input[type="email"] {
    width: 100% !important;
    min-width: unset !important;
  }
  #emailCapBar button[type="submit"] {
    width: 100% !important;
  }
  /* Push WhatsApp button up when email bar is visible */
  body.ec-open a[title*="WhatsApp"] {
    bottom: 7rem !important;
  }
}

/* === EMAIL CAPTURE BAR: better close button + z-ordering === */
#emailCapBar {
  padding: 1rem 1.25rem !important;
}
#emailCapBar button[onclick*="emb"] {
  position: absolute !important;
  top: 0.625rem !important;
  right: 0.75rem !important;
  font-size: 1.25rem !important;
  line-height: 1 !important;
  background: rgba(255,255,255,0.1) !important;
  border-radius: 50% !important;
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* === EMERGENCY STRIP: full center on mobile === */
@media (max-width: 768px) {
  /* The inline-flex wrapper with the icon + text */
  [style*="background:rgba(239,68,68"] .container > div:first-child {
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  [style*="background:rgba(239,68,68"] .container > div > span,
  [style*="background:rgba(239,68,68"] .container > span {
    text-align: center !important;
  }
  /* Also center the service cards title on mobile */
  .section-header.centered { text-align: center !important; }
  .section-header.centered .section-title,
  .section-header.centered .section-label,
  .section-header.centered .section-sub { text-align: center !important; }
}

/* === LEGAL PAGES === */
.legal-page { max-width: 780px; margin: 0 auto; padding: 3rem clamp(1rem,4vw,2.5rem) 5rem; color: var(--text-muted); }
.legal-page h2 { font-size: 1.375rem; font-weight: 700; color: var(--text); margin: 2.5rem 0 0.875rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.legal-page h3 { font-size: 1.0625rem; font-weight: 600; color: var(--text); margin: 1.5rem 0 0.5rem; }
.legal-page p { line-height: 1.8; margin-bottom: 1rem; font-size: 0.9375rem; }
.legal-page ul { margin: 0.75rem 0 1rem 0; display: flex; flex-direction: column; gap: 0.4rem; }
.legal-page ul li { font-size: 0.9375rem; line-height: 1.7; padding-left: 1.25rem; position: relative; }
.legal-page ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; background: var(--lime); border-radius: 50%; }
.legal-page a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { font-size: 0.8125rem; color: var(--text-dim); background: rgba(184,255,60,0.06); border: 1px solid var(--border-lime); border-radius: var(--radius-sm); display: inline-block; padding: 4px 12px; margin-bottom: 2rem; }
.page-hero { padding: clamp(6rem,12vw,9rem) 0 clamp(3rem,6vw,5rem); background: var(--bg); }
.page-hero h1 { font-size: clamp(2rem,5vw,3.5rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1rem; }
.page-hero .section-sub { font-size: clamp(1rem,1.8vw,1.125rem); color: var(--text-muted); max-width: 560px; line-height: 1.7; }
