/* ================================================================
   GROWUPHOST — GLOBAL ENHANCEMENT CSS
   UI/UX + Mobile + Performance + Conversion Optimization
   ================================================================ */

/* ── 1. CSS RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Nunito', sans-serif;
  color: #1e293b;
  background: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none !important; transition: color .2s; }
a:hover { text-decoration: none !important; }

/* ── 2. FLOATING NAVBAR ──────────────────────────────────────── */
#default_header_box {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(15,23,42,.08) !important;
  border-bottom: 1px solid rgba(226,232,240,.6) !important;
  transition: box-shadow .3s, background .3s !important;
  z-index: 9999 !important;
}

#default_header_box .menu_box .menu > li > a {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  padding: 22px 16px !important;
  letter-spacing: .01em;
  transition: color .2s !important;
}

#default_header_box .menu_box .menu > li > a:hover {
  color: #2563eb !important;
}

/* Active underline on nav items */
.default_menu_box ul > li > a::after {
  background-color: #2563eb !important;
  height: 3px !important;
  border-radius: 2px !important;
  bottom: 12px !important;
  left: 16px !important;
  width: 0 !important;
  transition: width .25s ease !important;
}
.default_menu_box ul > li > a:hover::after { width: 24px !important; opacity: 1 !important; }

/* Dropdown polish */
.bb-header-container .menu_box ul.menu li .bb-dropdown-menu {
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(15,23,42,.12) !important;
  border-top: 3px solid #2563eb !important;
  padding: 8px 0 !important;
}

.bb-header-container .menu_box ul.menu li .bb-dropdown-menu li a {
  font-size: 14px !important;
  padding: 10px 18px !important;
  color: #374151 !important;
  font-weight: 500 !important;
  transition: background .15s, color .15s !important;
}

.bb-header-container .menu_box ul.menu li .bb-dropdown-menu li:hover > a {
  background: #eff6ff !important;
  color: #2563eb !important;
}

/* Header top bar */
.header-top {
  background: linear-gradient(90deg, #1d4ed8, #2563eb) !important;
  height: 44px !important;
  font-size: 13px;
}

/* Mobile header */
#mobile_header {
  background: #fff !important;
  box-shadow: 0 2px 16px rgba(15,23,42,.1) !important;
  padding: 12px 16px !important;
  border-bottom: none !important;
}

/* ── 3. GLOBAL BUTTON SYSTEM ─────────────────────────────────── */
.gh-btn-primary,
.new-order-btn,
.order-btn,
.hero-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2563eb !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 13px 28px !important;
  border-radius: 10px !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(37,99,235,.35) !important;
  transition: background .2s, transform .2s, box-shadow .2s !important;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}

.gh-btn-primary:hover,
.new-order-btn:hover,
.order-btn:hover,
.hero-btn:hover {
  background: #1d4ed8 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(37,99,235,.4) !important;
  color: #fff !important;
}

.m-btn.m-btn-theme,
.m-btn.m-btn-theme2nd,
.theme-bg,
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border-color: transparent !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  transition: transform .2s, box-shadow .2s !important;
}

.m-btn.m-btn-theme:hover,
.m-btn.m-btn-theme2nd:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(37,99,235,.35) !important;
}

/* ── 4. PRICING TABLE — MOBILE SWIPE SLIDER ─────────────────── */

/* Hide swipe hint on desktop */
.plans-swipe-hint { display: none; }

@media (max-width: 767px) {

  /* Outer section: clip overflow */
  .new-plans-section,
  .section#plan {
    overflow: hidden !important;
  }

  /* Scrollable wrapper */
  .price-slider-wrap {
    overflow-x: scroll !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: 16px !important;
    padding: 8px 0 20px !important;
    /* Escape body overflow-x:hidden via negative margins */
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding-left: 16px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .price-slider-wrap::-webkit-scrollbar { display: none !important; }

  /* Row: horizontal flex */
  .price-slider-wrap .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    width: max-content !important;
    align-items: stretch !important;
  }

  /* Each card: 80vw so next card peeks */
  .price-slider-wrap .new-plan-col,
  .price-slider-wrap .plan-col {
    flex: 0 0 80vw !important;
    width: 80vw !important;
    max-width: 80vw !important;
    scroll-snap-align: start !important;
    padding: 0 8px !important;
    margin-bottom: 0 !important;
  }

  /* Last card: extra right padding */
  .price-slider-wrap .new-plan-col:last-child,
  .price-slider-wrap .plan-col:last-child {
    padding-right: 24px !important;
  }

  /* Dots indicator */
  .price-dots {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 4px;
  }

  .price-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: background .2s, transform .2s;
    cursor: pointer;
  }

  .price-dot.active {
    background: #2563eb;
    transform: scale(1.3);
  }

  /* Swipe hint */
  .plans-swipe-hint {
    display: block !important;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    padding: 4px 0 8px;
    letter-spacing: .3px;
  }
}

@media (max-width: 400px) {
  .price-slider-wrap .new-plan-col,
  .price-slider-wrap .plan-col {
    flex: 0 0 86vw !important;
    width: 86vw !important;
    max-width: 86vw !important;
  }
}

/* ── 5. PRICING CARD ENHANCEMENTS ────────────────────────────── */
.plan-card-top {
  transition: transform .25s, box-shadow .25s !important;
}
.plan-card-top:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(37,99,235,.15) !important;
}

/* Popular card highlight */
.plan-card-popular .plan-card-top,
.plan-card-popular .new-plan-card-top {
  border: 2px solid #2563eb !important;
  transform: scale(1.02);
  box-shadow: 0 12px 36px rgba(37,99,235,.2) !important;
}

.popular-badge {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 5px 18px !important;
  border-radius: 20px !important;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Feature list items */
.new-feat-list li,
.feat-list li {
  transition: color .15s, transform .15s !important;
  border-radius: 6px;
  padding-left: 4px !important;
}
.new-feat-list li:hover,
.feat-list li:hover {
  color: #2563eb !important;
  transform: translateX(4px) !important;
}

/* ── 6. TRUST / CONVERSION SECTION ──────────────────────────── */
.gh-trust-strip {
  background: linear-gradient(135deg, #f0f7ff, #e8f4ff);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 20px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
}

.gh-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.gh-trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gh-trust-icon svg {
  stroke: #fff;
  fill: none;
  width: 18px;
  height: 18px;
}

/* ── 7. SECTION HEADINGS ─────────────────────────────────────── */
.section-heading-block {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading-block h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
  margin-bottom: 12px;
}

.section-heading-block h2 span { color: #2563eb !important; }

.section-heading-block p {
  font-size: 1rem;
  color: #64748b;
  max-width: 560px;
  margin: 0 auto;
}

/* ── 8. FEATURE CARDS ────────────────────────────────────────── */
.card.media.flex-row {
  transition: transform .25s, box-shadow .25s !important;
  border: 1px solid #e2e8f0 !important;
}

.card.media.flex-row:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 28px rgba(37,99,235,.1) !important;
  border-color: #bfdbfe !important;
}

/* ── 9. FOOTER ENHANCEMENTS ──────────────────────────────────── */
.footer-3d {
  /* Remove heavy 3D transforms for performance */
  transform: none !important;
}

.footer-3d .col-md-4:hover,
.footer-3d .col-md-2:hover,
.footer-3d .col-lg-2:hover,
.footer-3d .col-md-3:hover,
.footer-3d .col-lg-3:hover {
  transform: translateY(-2px) !important;
}

/* Footer SEO paragraph */
.footer-seo-text {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 320px;
}

/* ── 10. MOBILE GLOBAL FIXES ─────────────────────────────────── */
@media (max-width: 767px) {

  /* Section padding */
  .section { padding: 40px 0 !important; }
  .p-100px-tb { padding-top: 50px !important; padding-bottom: 50px !important; }
  .p-50px-tb  { padding-top: 30px !important; padding-bottom: 30px !important; }

  /* Headings */
  h1, .h1 { font-size: 26px !important; line-height: 1.3 !important; }
  h2, .h2  { font-size: 22px !important; }
  h3, .h3  { font-size: 18px !important; }

  /* Feature cards */
  .col-sm-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* CTA bar */
  .p-30px-tb.theme-bg .row {
    flex-direction: column !important;
    text-align: center !important;
    gap: 16px !important;
  }

  /* FAQ */
  .col-lg-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* Buttons full width on mobile */
  .new-order-btn,
  .order-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }

  /* Touch targets */
  a, button, .m-btn, .new-order-btn, .order-btn, .hero-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Prevent text overflow */
  p, li, span, h1, h2, h3, h4, h5, h6 {
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* ── 11. ANIMATION OPTIMIZATION ─────────────────────────────── */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Remove heavy animations, keep only micro-interactions */
.hover-top { transition: transform .25s ease !important; }
.hover-top:hover { transform: translateY(-6px) !important; }

/* Disable heavy particle/float animations on mobile */
@media (max-width: 767px) {
  .off-particles span,
  .gd-blob-l,
  .gd-blob-r,
  .gh-fbadge-1,
  .gh-fbadge-2,
  .gh-fbadge-3,
  .off-float-card { display: none !important; }

  .mobile.floating {
    animation: none !important;
  }
}

/* ── 12. LAZY LOADING PLACEHOLDER ───────────────────────────── */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity .3s;
}
img[loading="lazy"].loaded { opacity: 1; }

/* ── 13. BLOG SYSTEM STYLES ──────────────────────────────────── */
.blog-listing-section {
  padding: 60px 0;
  background: #f8fafc;
}

.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15,23,42,.1);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-tag {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.blog-card-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.4 !important;
  margin-bottom: 10px;
}

.blog-card-title a { color: inherit !important; }
.blog-card-title a:hover { color: #2563eb !important; }

.blog-card-excerpt {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.blog-card-meta {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb !important;
  font-size: 13px;
  font-weight: 700;
  margin-top: 12px;
  transition: gap .2s;
}
.blog-read-more:hover { gap: 10px !important; }

/* Single blog post */
.blog-post-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-post-header {
  padding: 60px 0 40px;
  text-align: center;
}

.blog-post-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem) !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
  margin-bottom: 16px;
}

.blog-post-meta {
  font-size: 14px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

.blog-post-content h2 {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 36px 0 16px !important;
}

.blog-post-content h3 {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 28px 0 12px !important;
}

.blog-post-content p { margin-bottom: 20px; }

.blog-post-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.blog-post-content ul li {
  margin-bottom: 8px;
  list-style: disc;
}

.blog-post-content a {
  color: #2563eb !important;
  text-decoration: underline !important;
}

.blog-faq-section {
  background: #f8fafc;
  border-radius: 16px;
  padding: 32px;
  margin: 40px 0;
}

.blog-faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
}

.blog-faq-item:last-child { border-bottom: none; }

.blog-faq-q {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 8px;
}

.blog-faq-a {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
}

/* Breadcrumb */
.gh-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  padding: 16px 0;
  flex-wrap: wrap;
}

.gh-breadcrumb a { color: #2563eb !important; }
.gh-breadcrumb span { color: #cbd5e1; }

/* ── 14. INTERNAL LINK CTA BOX ───────────────────────────────── */
.gh-cta-box {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin: 40px 0;
  color: #fff;
}

.gh-cta-box h3 {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin-bottom: 8px;
}

.gh-cta-box p {
  color: rgba(255,255,255,.8);
  margin-bottom: 20px;
  font-size: 15px;
}

.gh-cta-box a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff !important;
  color: #2563eb !important;
  font-weight: 700 !important;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  transition: transform .2s, box-shadow .2s;
}

.gh-cta-box a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

/* ── 15. PERFORMANCE: REDUCE REPAINTS ────────────────────────── */
.plan-card-top,
.blog-card,
.card.media.flex-row,
.gh-feature,
.ghf-card {
  will-change: transform;
  contain: layout style;
}

/* ── 16. SCROLL SNAP DOTS JS HOOK ────────────────────────────── */
.price-dots { display: none; } /* shown via JS on mobile */
