/* Chai 2 Theory - Enterprise Mobile Responsive & Polished SPA Styles */

html {
  scroll-behavior: smooth;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-tap-highlight-color: transparent;
}

body {
  opacity: 1;
  transition: opacity 0.25s ease-in-out;
  overscroll-behavior: none;
  overflow-x: hidden;
}

body.fade-out {
  opacity: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #fff8f5;
}

::-webkit-scrollbar-thumb {
  background: #dcc1b9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9a4023;
}

/* UNIFORM TOPBAR NAVIGATION TYPOGRAPHY & ANIMATIONS */
header nav a {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12px !important;
  line-height: 16px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  position: relative;
  transition: color 0.2s ease, font-weight 0.2s ease;
  padding-bottom: 4px;
  white-space: nowrap;
}

/* Animated Terracotta Underline Indicator */
header nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #9a4023;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

header nav a:hover::after,
header nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Dynamic Page View Transitions (Zero Flicker, Smooth Professional Crossfade) */
.page-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-view.hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(10px);
}

.page-view.animate-view-in {
  animation: viewFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive Drawer Styling */
#mobile-drawer {
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 10px 25px rgba(35, 26, 20, 0.1);
}

#mobile-drawer nav a {
  font-size: 16px !important;
  letter-spacing: 0.05em !important;
  padding: 8px 0;
}

/* Mobile Responsive Layout Utilities */
@media (max-width: 768px) {
  .h-20 {
    height: 4.25rem;
  }
  
  h1 {
    font-size: 2rem !important;
    line-height: 2.5rem !important;
  }
  
  h2 {
    font-size: 1.65rem !important;
    line-height: 2.15rem !important;
  }

  .px-gutter-mobile {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Stamp Shadow Utility */
.shadow-stamp {
  box-shadow: 4px 4px 0px 0px #231a14;
}

.shadow-stamp-sm {
  box-shadow: 2px 2px 0px 0px #231a14;
}

.shadow-stamp-lg {
  box-shadow: 6px 6px 0px 0px #231a14;
}

/* Custom Toast Notification */
#toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  transform: translateY(150%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Accordion Smooth Transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease;
}

.accordion-content.active {
  max-height: 500px;
}


/* Footer Legal Links Styling */
footer a, 
footer a:visited, 
footer a:active {
  color: #C5B6AA !important;
  text-decoration: none !important;
}

footer a:hover {
  color: #FBF8F3 !important;
}



/* Pure White Text for Menu Action Buttons */
.btn-white-text {
  color: #ffffff !important;
}
