/*
Theme Name: vido
Theme URI: http://underscores.me/
Author: Auto Importer
Description: Theme clone tự động hỗ trợ đồng bộ ACF.
Version: 2.0.0
Text Domain: vido
*/

/* ========================================================
   UNIVERSAL OVERFLOW & SCROLLBAR SAFETY
   ======================================================== */
html,
body {
  overflow-x: hidden;
  overflow-x: clip !important;
  max-width: 100vw !important;
}

.page-wrapper {
  overflow: visible !important;
}

@keyframes vidoTstAppReveal {
  to {
    opacity: 1;
  }
}

.tst-app {
  animation: vidoTstAppReveal 0.4s ease 2.2s forwards;
}

.wpcf7-response-output.vido-sent,
.wpcf7-response-output.vido-error {
  display: block !important;
  margin: 14px auto 0 !important;
  padding: 10px 16px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  text-align: center !important;
}

.wpcf7-response-output.vido-sent {
  background: rgba(70, 180, 80, 0.14) !important;
  border: 1px solid #46b450 !important;
  color: #1e4620 !important;
}

.wpcf7-response-output.vido-error {
  background: rgba(220, 50, 50, 0.12) !important;
  border: 1px solid #dc3232 !important;
  color: #8a1f1f !important;
}

/* ========================================================
   DEDICATED MOBILE NAVIGATION DRAWER
   ======================================================== */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 12px;
  z-index: 1001;
}

.fixed-nav-bar .nav-toggle,
.fixed-nav-toggle {
  color: #111111;
}

.hero-section .nav-toggle,
.page-hero-section .nav-toggle,
.hero-nav-toggle {
  color: #ffffff;
}

@media screen and (max-width: 991px) {

  .nav-toggle,
  .fixed-nav-toggle,
  .hero-nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-bar .menu-button,
  .nav-bar .w-nav-button,
  .fixed-nav-bar .nav-menu,
  .hero-section .nav-menu,
  .page-hero-section .nav-menu,
  .w-nav-menu:not(.mobile-nav-menu-list),
  .w-nav-overlay {
    display: none !important;
  }
}

.mobile-menu-backdrop {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 9998 !important;
}

body.nav-open .mobile-menu-backdrop {
  display: block !important;
}

.mobile-nav-drawer {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
  background: rgba(18, 18, 18, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
  border-bottom: 2px solid rgba(235, 122, 68, 0.5) !important;
  z-index: 9999 !important;
  padding: 24px 20px 36px !important;
  box-sizing: border-box !important;
}

body.nav-open .mobile-nav-drawer {
  display: block !important;
}

.mobile-nav-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-bottom: 20px !important;
}

.mobile-nav-logo img {
  max-height: 44px !important;
  width: auto !important;
  object-fit: contain !important;
}

.mobile-nav-close {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 36px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.mobile-nav-menu-list {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  text-align: center !important;
}

.mobile-nav-menu-list .nav-link,
.mobile-nav-menu-list .w-nav-link {
  display: block !important;
  width: 100% !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 18px !important;
  padding: 14px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  text-decoration: none !important;
}

.mobile-nav-menu-list .nav-bar-button,
.mobile-nav-menu-list .small-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 24px auto 10px !important;
  padding: 0 36px !important;
  height: 46px !important;
  border-radius: 30px !important;
}

/* ========================================================
   LIGHTBOX CONTROLS & MOBILE LAYOUT FIXES
   ======================================================== */
.w-lightbox-control.w-lightbox-left,
.w-lightbox-control.w-lightbox-right {
  display: block !important;
  visibility: visible !important;
  opacity: 0.95 !important;
  background-color: rgba(235, 122, 68, 0.9) !important;
  border-radius: 50% !important;
  width: 48px !important;
  height: 48px !important;
}

@media screen and (max-width: 767px) {

  .w-lightbox-control.w-lightbox-left,
  .w-lightbox-control.w-lightbox-right {
    width: 44px !important;
    height: 44px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .w-lightbox-control.w-lightbox-left {
    left: 10px !important;
  }

  .w-lightbox-control.w-lightbox-right {
    right: 10px !important;
  }

  .footer-bottom-content {
    margin: 0 !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .contact,
  .contact-card,
  .working-hours,
  .footer-column,
  .footer-column .w-embed,
  .footer-column iframe {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .features {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .feature-image._1,
  .feature-image._2,
  .feature-text,
  .feature-banner {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 24px !important;
    box-sizing: border-box !important;
  }
}

/* ========================================================
   DEFAULT / LEGAL PAGES (PRIVACY, TERMS, ACCESSIBILITY)
   ======================================================== */
.tst-legal-page .col-lg-12 .h2,
.page-template-default:not(.elementor-page) .col-lg-12 .h2 {
  display: block !important;
  margin: 40px 0 !important;
}

.tst-legal-page .tst-content-frame--start,
.tst-legal-page .tst-content-frame--container,
.tst-legal-page .tst-content-frame--end,
.page-template-default:not(.elementor-page) .tst-content-frame--start,
.page-template-default:not(.elementor-page) .tst-content-frame--container,
.page-template-default:not(.elementor-page) .tst-content-frame--end {
  background-color: #fffbe9 !important;
}

.tst-legal-page .single-post-text,
.tst-legal-page .single-post-text p,
.tst-legal-page .single-post-text li,
.tst-legal-page .single-post-text h3,
.tst-legal-page .single-post-text h4,
.tst-legal-page .single-post-text h5,
.tst-legal-page .single-post-text strong {
  color: #1a2f33;
}

.tst-legal-page .single-post-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.tst-legal-page .single-post-text a:hover {
  color: #db4123;
}

.tst-legal-page .single-post-text ul {
  list-style: disc !important;
  padding-left: 24px;
  margin: 0 0 1.25rem 0;
}

.tst-legal-page .single-post-text ul>li {
  padding-left: 4px;
  margin-bottom: 8px;
}

.tst-legal-page .single-post-text ul>li::before {
  content: none !important;
  display: none !important;
}

/* ========================================================
   MOBILE STICKY BOTTOM ACTION BAR (.link-bottom)
   ======================================================== */
.vido-mobile-bottom-bar {
  display: none;
}

@media screen and (max-width: 767px) {
  footer.tst-white {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .vido-mobile-bottom-bar {
    display: block !important;
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 100000 !important;
    background: linear-gradient(180deg, rgba(116, 18, 4, 0.95) 0%, rgba(78, 10, 0, 0.97) 100%) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(230, 177, 95, 0.35) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 32px rgba(40, 4, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.22) !important;
    padding: 6px !important;
    box-sizing: border-box !important;
    transition: transform 0.25s ease, opacity 0.25s ease !important;
  }

  body.nav-open .vido-mobile-bottom-bar,
  body.tst-menu-open .vido-mobile-bottom-bar {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(120%) !important;
  }

  .vido-mobile-bottom-bar .link-bottom-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
    gap: 5px !important;
    width: 100% !important;
  }

  .vido-mobile-bottom-bar .link-bottom-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-height: 52px !important;
    padding: 7px 4px !important;
    border-radius: 13px !important;
    text-decoration: none !important;
    color: #fffbe9 !important;
    background: transparent !important;
    transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .vido-mobile-bottom-bar .link-bottom-item i {
    font-size: 16px !important;
    line-height: 1 !important;
    color: #e6b15f !important;
    transition: transform 0.15s ease, color 0.2s ease !important;
  }

  .vido-mobile-bottom-bar .link-bottom-item span {
    font-family: "Josefin Sans", "Plus Jakarta Sans", sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  .vido-mobile-bottom-bar .link-bottom-item.is-active {
    background: rgba(255, 251, 233, 0.12) !important;
    color: #fffbe9 !important;
    box-shadow: inset 0 0 0 1px rgba(230, 177, 95, 0.28) !important;
  }

  .vido-mobile-bottom-bar .link-bottom-item.is-active i {
    color: #ffd584 !important;
  }

  .vido-mobile-bottom-bar .link-bottom-item.is-highlight {
    background: linear-gradient(135deg, #db4123 0%, #b52d14 100%) !important;
    color: #fffbe9 !important;
    box-shadow: 0 4px 14px rgba(219, 65, 35, 0.45), inset 0 0 0 1px rgba(255, 251, 233, 0.24) !important;
  }

  .vido-mobile-bottom-bar .link-bottom-item.is-highlight i {
    color: #fffbe9 !important;
  }

  .vido-mobile-bottom-bar .link-bottom-item.is-highlight span {
    font-weight: 700 !important;
  }

  .vido-mobile-bottom-bar .link-bottom-item:active {
    transform: scale(0.95) !important;
  }
}