/*
Theme Name: Align
Theme URI: https://align.vn/
Author: Align Team
Author URI: https://align.vn/
Description: A modern block theme built with Tailwind and Gutenberg compatibility.
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: align
*/

html {
}

video{
  width:100%;
  height:100% !important;
  object-fit: cover;
}

/* Fix line-height conflicts for Tailwind */
.leading-tight {
  line-height: 1.25 !important;
}

#wp-skip-link{display:none !important}

/* Glassmorphism custom styling */
.glass-effect {
  background: rgba(31, 31, 31, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light cream glassmorphism for Section 4 */
.glass-cream {
  background: rgba(249, 242, 232, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Linear gradient overlay for Section 4 background */
.section-4-gradient {
  background: linear-gradient(to right, rgba(249, 242, 232, 0.3), rgba(123, 188, 176, 0.65), rgba(249, 242, 232, 0.3));
}


/* Active link/hover transitions */
.nav-hover {
  transition: all 0.3s ease;
}
.nav-hover:hover {
  color: #CD3108;
  transform: translateY(-1px);
}

/* Pulse anim for warning/guide box */
.guide-box {
  animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Category Tab active/hover rules using attribute selectors */
.models-tab {
  border-bottom: 2px solid transparent !important;
  transition: all 0.3s ease;
}
.models-tab[aria-selected="true"] {
  border-bottom-color: #AD1A24 !important;
}
.models-tab[aria-selected="false"]:hover {
  border-bottom-color: rgba(173, 26, 36, 0.3) !important;
}
.models-tab[aria-selected="false"]:hover span {
  color: #AD1A24 !important;
}

/* Hide scrollbars but keep functionality */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Unifying layout content alignment helper */
/* .align-content {
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 768px) {
  .align-content {
    padding-left: 72px;
    padding-right: 72px;
  }
}
@media (min-width: 1296px) {
  .align-content {
    padding-left: 0;
    padding-right: 0;
  }
} */

/* Section 5 Custom Styling */
.process-track {
  padding-left: 16px;
  padding-right: 16px;
}
.process-track {
  scroll-padding-left: 16px;
}
.process-card {
  scroll-snap-align: start;
  scroll-margin-left: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  .process-track {
    padding-left: 72px;
    padding-right: 72px;
  }
  .process-track {
    scroll-padding-left: 72px;
  }
  .process-card {
    scroll-margin-left: 72px;
  }
}

@media (min-width: 1296px) {
  .process-track {
    padding-left: calc((100% - 1296px) / 2);
    padding-right: calc((100% - 1296px) / 2);
  }
  .process-track {
    scroll-padding-left: calc((100% - 1296px) / 2);
  }
  .process-card {
    scroll-margin-left: calc((100% - 1296px) / 2);
  }
}



.process-card:hover {
  transform: translateY(-6px);
  border-color: #CD3108;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
}
.process-card svg {
  transition: transform 0.4s ease;
}
.process-card:hover svg {
  transform: scale(1.05);
}

/* Section 7 Custom Styling */
.blog-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-card:hover {
  transform: translateY(-8px);
  border-color: #CD3108;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Section 8 Custom Styling */
.glass-cream-card {
  background: rgba(249, 242, 232, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15);
}

.section-8-gradient {
  background: linear-gradient(to right, #F9F2E8, rgba(123, 188, 176, 0.65), #F9F2E8);
}

.btn-quote {
  will-change: transform;
}
.btn-quote:focus-visible {
  outline: 3px solid #AD1A24;
  outline-offset: 2px;
}

/* Section 9 Custom Footer Styling */
.FooterContainer a {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.FooterContainer a:hover {
  color: #AD1A24 !important;
}
.FooterContainer a:focus-visible {
  outline: 2px solid #AD1A24;
  outline-offset: 3px;
  border-radius: 4px;
}

.FooterNewsletterForm {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.FooterNewsletterForm:focus-within {
  border-color: #CD3108;
  box-shadow: 0 0 0 3px rgba(205, 49, 8, 0.15);
}
.social-icon-btn {
  transition: all 0.2s ease;
}
.social-icon-btn:hover {
  color: #AD1A24 !important;
  transform: translateY(-2px) scale(1.05);
}

/* Payment badges styling refinements */
.badge-card {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Mobile Drawer & Viewport fixes */
body.no-scroll {
  overflow: hidden !important;
  height: 100vh;
  height: 100dvh;
}

.drawer-overlay {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-submenu.open {
  max-height: 350px;
}

/* Section 3 Swiper caption responsive adaptations */
.models-swiper .swiper-slide .absolute {
  max-width: calc(100% - 3rem) !important;
  min-height: 44px !important;
  height: auto !important;
  padding: 8px 16px !important;
  border-radius: 9999px !important;
  bottom: 1.5rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.models-swiper .swiper-slide .absolute span {
  font-size: clamp(14px, 4vw, 22px) !important;
  line-height: 1.2 !important;
  text-align: center;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .models-swiper .swiper-slide .absolute {
    max-width: 340px !important;
    height: 62px !important;
    padding: 15px !important;
    left: 1.5rem !important;
    transform: none !important;
  }
  .models-swiper .swiper-slide .absolute span {
    font-size: 32px !important;
    line-height: 1 !important;
  }
}

/* Sửa lỗi chiều cao Section 1 Hero trong WordPress */
.align-qb-slide-content {
  width: 100%;
  height: 100%;
}

/* Fix chiều cao Hero khi có admin bar */
.admin-bar #hero-section,
.admin-bar #align-hero-section {
  height: calc(100vh - 32px) !important;
}
@media (max-width: 782px) {
  .admin-bar #hero-section,
  .admin-bar #align-hero-section {
    height: calc(100vh - 46px) !important;
  }
}

/* Tự động padding cho content container của các Section khi được update qua CMS */
#models-carousel-section .align-content,
#align-models-carousel-section .align-content,
#interior-builder-section .align-content,
#align-interior-builder-section .align-content {
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 768px) {
  #models-carousel-section .align-content,
  #align-models-carousel-section .align-content,
  #interior-builder-section .align-content,
  #align-interior-builder-section .align-content {
    padding-left: 72px;
    padding-right: 72px;
  }
}
@media (min-width: 1296px) {
  #models-carousel-section .align-content,
  #align-models-carousel-section .align-content,
  #interior-builder-section .align-content,
  #align-interior-builder-section .align-content {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Tự động định dạng style cho Swiper Slide của Models Carousel trong WordPress */
.models-swiper .swiper-slide {
  width: 100% !important;
  height: 504px !important;
  border-radius: 60px !important;
  position: relative !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}
@media (min-width: 768px) {
  .models-swiper .swiper-slide {
    width: 829px !important;
  }
}

/* Custom styles for Swiper Wrapper in Gutenberg Editor */
.editor-styles-wrapper .models-swiper,
.editor-styles-wrapper .swiper {
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

.editor-styles-wrapper .swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 20px !important;
  padding-bottom: 15px !important;
}

.editor-styles-wrapper .swiper-wrapper .swiper-slide {
  flex-shrink: 0 !important;
}

.editor-styles-wrapper .swiper-wrapper::-webkit-scrollbar {
  height: 6px;
}
.editor-styles-wrapper .swiper-wrapper::-webkit-scrollbar-thumb {
  background: rgba(173, 26, 36, 0.4);
  border-radius: 3px;
}
.editor-styles-wrapper .swiper-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

