:root {
  --brand-primary: #ea960a;
  --brand-bg: #20186d;
}

body {
  line-height: 1.5;
  overflow-x: hidden;
}

.font-serif {
  font-family: 'Playfair+Display', serif;
}

.sec-caption {
  display: inline-block;
  background: rgba(234, 150, 10, 0.1);
  color: var(--brand-primary);
  padding: 8px 16px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  border-left: 3px solid var(--brand-primary);
}

.sec-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .sec-title {
    font-size: 40px;
  }
}

@media (min-width: 1024px) {
  .sec-title {
    font-size: 64px;
  }
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Manual Scroll replaces auto-animation */

@keyframes drawCircle {
  0% {
    stroke-dashoffset: 600;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  70% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.animate-draw-circle {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawCircle 3.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.dark ::-webkit-scrollbar-track {
  background: var(--brand-bg);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.dark ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

/* ========================
   MEGA MENU SYSTEM
   ======================== */

/* Nav trigger underline indicator */
.mega-menu-trigger::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}
.mega-menu-trigger:hover::after,
.mega-menu-trigger.active::after {
  width: 100%;
}

/* Mega menu container */
#mega-menu-container {
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.35s ease, padding 0.35s ease;
}
#mega-menu-container.open {
  max-height: 600px;
}
#mega-menu-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
#mega-menu-container.open::before {
  opacity: 1;
}

/* Menu item card */
.menu-item-card {
  padding: 10px 14px;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}
.menu-item-card:hover {
  background: rgba(234, 150, 10, 0.04);
  border-color: rgba(234, 150, 10, 0.1);
  transform: translateY(-2px);
}
.dark .menu-item-card:hover {
  background: rgba(234, 150, 10, 0.06);
  border-color: rgba(234, 150, 10, 0.12);
}

/* Icon pill */
.icon-pill {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(234, 150, 10, 0.06);
  color: var(--brand-primary);
}
.dark .icon-pill {
  background: rgba(234, 150, 10, 0.08);
}
.menu-item-card:hover .icon-pill {
  background: linear-gradient(135deg, var(--brand-primary), #d4860a);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(234, 150, 10, 0.3);
}

/* CTA card */
.cta-card {
  background: linear-gradient(135deg, rgba(234, 150, 10, 0.08), rgba(32, 24, 109, 0.04));
  border: 1px solid rgba(234, 150, 10, 0.12);
  position: relative;
  overflow: hidden;
}
.dark .cta-card {
  background: linear-gradient(135deg, rgba(234, 150, 10, 0.1), rgba(32, 24, 109, 0.4));
  border-color: rgba(234, 150, 10, 0.15);
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(234, 150, 10, 0.1), transparent 70%);
  pointer-events: none;
}

/* Badge pulse */
.badge-hot {
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 150, 10, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(234, 150, 10, 0); }
}

/* Staggered item animation */
@keyframes menuItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mega-menu-content:not(.hidden) .menu-item-card {
  animation: menuItemFadeIn 0.35s ease forwards;
  opacity: 0;
}
.mega-menu-content:not(.hidden) .menu-item-card:nth-child(1) { animation-delay: 0.02s; }
.mega-menu-content:not(.hidden) .menu-item-card:nth-child(2) { animation-delay: 0.04s; }
.mega-menu-content:not(.hidden) .menu-item-card:nth-child(3) { animation-delay: 0.06s; }
.mega-menu-content:not(.hidden) .menu-item-card:nth-child(4) { animation-delay: 0.08s; }
.mega-menu-content:not(.hidden) .menu-item-card:nth-child(5) { animation-delay: 0.10s; }
.mega-menu-content:not(.hidden) .menu-item-card:nth-child(6) { animation-delay: 0.12s; }
.mega-menu-content:not(.hidden) .menu-item-card:nth-child(7) { animation-delay: 0.14s; }
.mega-menu-content:not(.hidden) .menu-item-card:nth-child(8) { animation-delay: 0.16s; }
.mega-menu-content:not(.hidden) .menu-item-card:nth-child(9) { animation-delay: 0.18s; }
.mega-menu-content:not(.hidden) .menu-item-card:nth-child(10) { animation-delay: 0.20s; }
.mega-menu-content:not(.hidden) .menu-item-card:nth-child(11) { animation-delay: 0.22s; }
.mega-menu-content:not(.hidden) .menu-item-card:nth-child(12) { animation-delay: 0.24s; }
.mega-menu-content:not(.hidden) .menu-item-card:nth-child(13) { animation-delay: 0.26s; }
.mega-menu-content:not(.hidden) .menu-item-card:nth-child(14) { animation-delay: 0.28s; }
.mega-menu-content:not(.hidden) .menu-item-card:nth-child(15) { animation-delay: 0.30s; }
.mega-menu-content:not(.hidden) .menu-item-card:nth-child(16) { animation-delay: 0.32s; }
.mega-menu-content {
  transition: opacity 0.25s ease-in-out;
  opacity: 0;
}
.mega-menu-content.active-content {
  opacity: 1;
}

/* Mobile accordion */
.mobile-accordion-trigger {
  transition: background 0.2s ease;
}
.mobile-accordion-trigger:hover {
  background: rgba(234, 150, 10, 0.04);
}

/* Mobile menu item row */
.mobile-menu-item {
  padding: 10px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.mobile-menu-item:hover,
.mobile-menu-item:active {
  background: rgba(234, 150, 10, 0.06);
}

/* ========================
   LEGACY STYLES
   ======================== */

.glass-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .bg-brand-deep\/95 {
  background-color: rgba(32, 24, 109, 0.95);
}

.dark .glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Toast Notifications */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes slideInFromBottom {
  from {
    transform: translate(-50%, 32px);
  }

  to {
    transform: translate(-50%, 0);
  }
}

@keyframes slideOutToBottom {
  from {
    transform: translate(-50%, 0);
  }

  to {
    transform: translate(-50%, 32px);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.fade-out {
  animation: fadeOut 0.5s ease-in forwards;
}

.slide-in-from-bottom-8 {
  animation: slideInFromBottom 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-out-to-bottom-8 {
  animation: slideOutToBottom 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ========================
   MOBILE MENU SOLID FULL-SCREEN OVERLAY
   ======================== */

#mobile-menu {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important; /* Highest z-index in application */
  background-color: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.dark #mobile-menu {
  background-color: #20186d !important; /* solid deep blue */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Header style for mobile menu (logo left, close icon right, vertically centered, fixed height) */
.mobile-menu-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 1.5rem !important;
  height: 70px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  flex-shrink: 0 !important;
  background-color: #ffffff !important;
}

.dark .mobile-menu-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  background-color: #20186d !important;
}

/* Scrollable container for menu items to avoid clipping and conflicts */
#mobile-menu-items {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 1.5rem !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
}

/* Override slide animations to ensure smooth modern easing */
#mobile-menu.transition-all {
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* High contrast glass cards inside mobile menu */
#mobile-menu .glass-card {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

.dark #mobile-menu .glass-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

/* High-contrast mobile menu inputs with min height 48px */
#mobile-menu input[type="text"] {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
  height: 48px !important;
}

.dark #mobile-menu input[type="text"] {
  background-color: rgba(0, 0, 0, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* Tap target heights for mobile items and links */
#mobile-menu a, 
#mobile-menu button {
  min-height: 48px; /* minimum tap height */
}

/* Except small icons/social buttons which can have smaller dimensions but larger touch targets/spacing */
#mobile-menu .mobile-menu-social-btn {
  min-height: 40px !important;
  min-width: 40px !important;
}