/*
Theme Name: Neve Child Kiên Pro
Theme URI: https://kienpro.vn/
Description: Child theme cao cấp thiết kế lại trang chủ cho thương hiệu cá nhân Kiên Pro (Phạm Trung Kiên) - Facebook Ads & Business Growth.
Author: Kici Group / Kiên Pro Team
Author URI: https://kienpro.vn/
Template: neve
Version: 1.0.4
Text Domain: neve-child-kienpro
*/

/* Custom global tweaks for Kiên Pro (isolated from affecting child pages) */
body.page-template-template-kienpro-home {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background-color: #FFFFFF;
  color: #1D1D1F;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ==========================================================================
   HIDE NEVE'S DEFAULT MULTI-PAGE HEADER & FOOTER ON LANDING PAGE
   ========================================================================== */
body.page-template-template-kienpro-home header.header,
body.page-template-template-kienpro-home #header,
body.page-template-template-kienpro-home .header-main,
body.page-template-template-kienpro-home .neve-main-header,
body.page-template-template-kienpro-home header[role="banner"]:not(.kienpro-landing-header),
body.page-template-template-kienpro-home footer#site-footer,
body.page-template-template-kienpro-home footer#footer,
body.page-template-template-kienpro-home .neve-footer-wrapper,
body.page-template-template-kienpro-home .footer-bottom,
body.page-template-template-kienpro-home #footer-bottom,
body.page-template-template-kienpro-home .footer-top,
body.page-template-template-kienpro-home footer.site-footer:not(.kienpro-site-footer),
body.page-template-template-kienpro-home .scroll-to-top,
body.page-template-template-kienpro-home #scroll-to-top,
body.page-template-template-kienpro-home .nv-back-to-top,
body.page-template-template-kienpro-home #neve-back-to-top,
body.page-template-template-kienpro-home .scroll-up-button,
body.page-template-template-kienpro-home a[href="#top"],
body.page-template-template-kienpro-home .to-top-button {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* ==========================================================================
   DEDICATED KIEN PRO LANDING PAGE HEADER (APPLE BLUR GLASS)
   ========================================================================== */
.kienpro-landing-header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  z-index: 9999 !important;
  transition: all 0.25s ease !important;
}

body.admin-bar .kienpro-landing-header {
  top: 32px !important;
}
@media (max-width: 782px) {
  body.admin-bar .kienpro-landing-header {
    top: 46px !important;
  }
}

.landing-header-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.landing-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: #1D1D1F !important;
}

.landing-brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.landing-brand-meta {
  display: flex;
  flex-direction: column;
}

.landing-brand-name {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1D1D1F;
  line-height: 1.2;
}

.landing-brand-sub {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #86868B;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-nav-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-nav-item {
  font-size: 0.875rem;
  font-weight: 500;
  color: #555558;
  text-decoration: none !important;
  transition: color 0.2s ease;
  padding: 6px 0;
}

.landing-nav-item:hover {
  color: #000000;
}

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-cta-btn {
  padding: 8px 18px !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  border-radius: 980px !important;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25) !important;
}

.landing-toggle-btn {
  display: none;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.landing-toggle-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1D1D1F;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.landing-toggle-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.landing-toggle-btn.active span:nth-child(2) {
  opacity: 0;
}
.landing-toggle-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.landing-mobile-drawer {
  display: none;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E5EA;
  padding: 16px 20px 24px;
}

.landing-mobile-drawer.open {
  display: block;
}

.landing-mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.landing-mobile-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1D1D1F;
  text-decoration: none !important;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

@media (max-width: 900px) {
  .landing-nav-desktop {
    display: none;
  }
  .landing-toggle-btn {
    display: flex;
  }
}

@media (max-width: 600px) {
  .landing-header-container {
    height: 58px;
    padding: 0 16px;
  }
  .landing-brand-logo {
    height: 36px;
  }
  .landing-brand-name {
    font-size: 0.9375rem;
  }
  .landing-brand-sub {
    font-size: 0.625rem;
  }
  .landing-cta-btn {
    padding: 6px 14px !important;
    font-size: 0.75rem !important;
  }
}

/* ==========================================================================
   CONSULTATION POPUP MODAL (FAILSAFE & MOBILE OPTIMIZED)
   ========================================================================== */
#consultationModal {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

#consultationModal.is-open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#consultationModal .modal-dialog {
  background: #FFFFFF !important;
  border: 1px solid #E5E5EA !important;
  border-radius: 24px !important;
  width: 100% !important;
  max-width: 500px !important;
  margin: auto !important;
  padding: 32px 28px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25) !important;
  position: relative !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  pointer-events: auto !important;
}

#consultationModal .modal-close-btn {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #F5F5F7 !important;
  border: 1px solid #E5E5EA !important;
  color: #1D1D1F !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.25rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  z-index: 10 !important;
}

#consultationModal .modal-close-btn:hover {
  background: #E5E5EA !important;
}

@media (max-width: 600px) {
  #consultationModal {
    padding: 12px !important;
  }
  #consultationModal .modal-dialog {
    padding: 24px 18px 28px !important;
    border-radius: 20px !important;
    max-height: 88vh !important;
    width: 100% !important;
  }
  #consultationModal .modal-title {
    font-size: 1.25rem !important;
    padding-right: 32px !important;
  }
  #consultationModal .modal-desc {
    font-size: 0.8125rem !important;
    margin-bottom: 16px !important;
  }
  #consultationModal .form-group {
    margin-bottom: 12px !important;
  }
  #consultationModal .form-control {
    font-size: 16px !important;
    padding: 11px 13px !important;
  }
  #consultationModal button[type="submit"] {
    height: 48px !important;
    font-size: 0.9375rem !important;
    border-radius: 980px !important;
    margin-top: 8px !important;
  }
}

/* ==========================================================================
   MOBILE FOOTER SPECIFICITY OVERRIDE (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .kienpro-site-footer .footer-grid,
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    width: 100% !important;
  }
  .kienpro-site-footer .footer-col {
    width: 100% !important;
    max-width: 100% !important;
  }
  .kienpro-site-footer .footer-bottom-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .floating-widget-group {
    bottom: 20px !important;
    right: 16px !important;
    gap: 10px !important;
  }
  .floating-btn {
    width: 48px !important;
    height: 48px !important;
  }
  .floating-btn.floating-top,
  #backToTopBtn {
    display: none !important;
  }
}
