/* ==========================================================================
   LEAP LIMITLESS - UI COMPONENTS
   Buttons, Navigation, Cards, Badges, Modals, Forms
   ========================================================================== */

/* Top Bar Announcement */
.announcement-bar {
  background-color: var(--brand-primary);
  color: var(--text-inverse);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.5rem 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--bg-dark-border);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--brand-accent-gold);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(197, 155, 99, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(197, 155, 99, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(197, 155, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(197, 155, 99, 0); }
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 249, 245, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(13, 28, 23, 0.08);
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header .brand-logo {
  margin-right: clamp(1rem, 1.8vw, 1.75rem);
}

.brand-logo img, .brand-logo svg {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: block;
  border-radius: 10px;
}

.brand-logo-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--brand-primary);
  line-height: 1.08;
  white-space: nowrap;
}

.brand-logo-name span {
  display: block;
}

.site-footer .brand-logo-name {
  color: var(--text-inverse);
}

@media (max-width: 1024px) {
  .header-inner {
    height: 76px;
  }
}

@media (max-width: 768px) {
  .brand-logo {
    gap: 0.7rem;
  }
  .brand-logo img, .brand-logo svg {
    width: 44px;
    height: 44px;
    border-radius: 9px;
  }
  .brand-logo-name {
    font-size: 1.15rem;
    line-height: 1.08;
  }
  .header-actions {
    gap: 0.65rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 68px;
  }
  .brand-logo {
    gap: 0.55rem;
  }
  .brand-logo img, .brand-logo svg {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
  .brand-logo-name {
    font-size: 0.98rem;
    line-height: 1.08;
  }
  .header-actions .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 380px) {
  .brand-logo img, .brand-logo svg {
    width: 34px;
    height: 34px;
  }
  .brand-logo-name {
    font-size: 0.88rem;
    line-height: 1.08;
  }
  .header-actions .btn {
    display: none;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.25vw, 1.4rem);
  flex-shrink: 1;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-accent-gold);
}

/* Navigation Dropdown */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-arrow {
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.nav-item-dropdown:hover .dropdown-arrow,
.nav-item-dropdown:focus-within .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-top: 2px solid var(--brand-accent-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px -4px rgba(13, 28, 23, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  z-index: 1050;
}

/* Hover bridge so moving cursor from toggle to menu never loses focus */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
  white-space: nowrap;
}

.dropdown-item:hover, .dropdown-item.active {
  background-color: var(--bg-canvas-alt);
  color: var(--brand-accent-gold-dark);
  padding-left: 1.45rem;
}

/* Adaptive Dark State (activates dynamically when dropdown sits over dark backgrounds, dark sections, or images while scrolling) */
.nav-dropdown-menu.adaptive-dark,
body.lc-body .nav-dropdown-menu {
  background-color: #0E1B16;
  background: rgba(14, 27, 22, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(197, 155, 99, 0.4);
  border-top: 2px solid var(--brand-accent-gold);
  box-shadow: 0 20px 48px -4px rgba(0, 0, 0, 0.75), 0 0 24px rgba(197, 155, 99, 0.16);
}

.nav-dropdown-menu.adaptive-dark .dropdown-item,
body.lc-body .nav-dropdown-menu .dropdown-item {
  color: #FAF9F5;
}

.nav-dropdown-menu.adaptive-dark .dropdown-item:hover,
.nav-dropdown-menu.adaptive-dark .dropdown-item.active,
body.lc-body .nav-dropdown-menu .dropdown-item:hover,
body.lc-body .nav-dropdown-menu .dropdown-item.active {
  background-color: rgba(197, 155, 99, 0.16);
  color: var(--brand-accent-gold);
  padding-left: 1.45rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  font-size: 1.75rem;
  color: var(--brand-primary);
  padding: 0.25rem;
  flex-shrink: 0;
}

@media (max-width: 1220px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .site-header .brand-logo {
    margin-right: 0;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(85vw, 380px);
  height: 100vh;
  background-color: var(--bg-canvas);
  z-index: 200;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 18, 0.6);
  backdrop-filter: blur(4px);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.drawer-link {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-link:hover {
  color: var(--brand-accent-gold-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: var(--text-inverse);
  box-shadow: 0 2px 6px rgba(13, 28, 23, 0.15);
}

.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 28, 23, 0.2);
}

.btn-gold {
  background-color: var(--brand-accent-gold);
  color: #0E1A15;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background-color: var(--brand-accent-gold-dark);
  color: #FAF9F5;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}

.btn-secondary:hover {
  background-color: var(--brand-primary);
  color: var(--text-inverse);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--brand-accent-gold);
  border: 1px solid var(--brand-accent-gold);
}

.btn-outline-gold:hover {
  background-color: var(--brand-accent-gold);
  color: #0E1A15;
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--brand-primary);
  background-color: rgba(0, 0, 0, 0.03);
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-gold {
  background-color: var(--brand-accent-gold-light);
  color: var(--brand-accent-gold-dark);
  border: 1px solid var(--brand-accent-gold-border);
}

.badge-dark {
  background-color: var(--bg-dark-card);
  color: var(--brand-accent-gold);
  border: 1px solid var(--border-dark);
}

.badge-emerald {
  background-color: var(--brand-emerald-subtle);
  color: var(--brand-emerald-dark);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-outline {
  background-color: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

/* Editorial Cards */
.card-editorial {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-editorial:hover {
  border-color: var(--brand-accent-gold-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-dark {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  color: var(--text-inverse);
}

.card-dark:hover {
  border-color: var(--brand-accent-gold);
}

.card-gold-border {
  border-left: 3px solid var(--brand-accent-gold);
}

/* Metric Display Unit */
.metric-pill {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1;
  color: var(--brand-primary);
}

.section-dark .metric-number {
  color: var(--text-inverse);
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}

.section-dark .metric-label {
  color: var(--brand-accent-gold);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 18, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: clamp(1.75rem, 4vw, 3rem);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-xs);
}

.modal-close:hover {
  color: var(--brand-primary);
  background-color: var(--bg-canvas-alt);
}

/* Forms & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(13, 28, 23, 0.08);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
  padding-top: 5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--bg-dark-border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-dark);
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-col h4 {
  color: var(--text-inverse);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-inverse-muted);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--brand-accent-gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.8125rem;
  color: var(--text-inverse-muted);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Details & FAQ Accordions */
details summary::-webkit-details-marker,
details summary::marker {
  display: none;
}

details summary {
  user-select: none;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--brand-accent-gold);
}

.faq-item[open] {
  border-color: var(--brand-accent-gold);
  box-shadow: 0 4px 20px rgba(13, 28, 23, 0.06);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-primary);
  cursor: pointer;
  gap: 1rem;
  list-style: none;
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--brand-accent-gold);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer p:not(:last-child) {
  margin-bottom: 0.75rem;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.comparison-table th {
  background: var(--bg-alt);
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--brand-primary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: rgba(197, 155, 99, 0.04);
}

/* ==========================================================================
   PAGE HERO : for inner pages
   ========================================================================== */

.page-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-light);
}

.page-hero-dark {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--bg-dark);
  border-bottom: 1px solid var(--bg-dark-border);
}

.page-hero-dark h1,
.page-hero-dark h2,
.page-hero-dark h3 {
  color: var(--text-inverse);
}

.page-hero-dark p {
  color: var(--text-inverse-muted);
}

