/* Bizora — app.css
 * Small custom layer on top of the Tailwind Play CDN build.
 * All design tokens live in views/partials/head.php (tailwind.config).
 */

html { -webkit-text-size-adjust: 100%; }

body { margin: 0; }

.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* Links inherit color unless explicitly styled */
a { text-decoration: none; }

/* Table defaults */
table { border-collapse: collapse; }

/* Accessible focus ring */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #1e3a8a;
  outline-offset: 2px;
}

/* Status dot (Design System: 6px circle before text) */
.status-dot { width: 6px; height: 6px; border-radius: 9999px; display: inline-block; }

/* Toast-style flash animations */
@keyframes flashIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.flash-enter { animation: flashIn .25s ease-out; }

/* ============================================================================
 * BIZORA premium design-system layer (navy + gold identity)
 * ----------------------------------------------------------------------------
 * CSS-variable tokens mirror the Tailwind palette in views/partials/head.php.
 * These utilities are additive — every existing class and behaviour is kept.
 * ========================================================================== */
:root {
  --bz-navy-950: #0a1735;
  --bz-navy-900: #10265c;
  --bz-navy-800: #1e3a8a;
  --bz-navy-700: #2f4fb0;
  --bz-gold: #f59e0b;
  --bz-gold-strong: #b45309;
  --bz-gold-deep: #92400e;
  --bz-gold-soft: #fff4dc;
  --bz-bg: #f7f9fd;
  --bz-surface: #ffffff;
  --bz-surface-muted: #eef2fa;
  --bz-text: #101e3c;
  --bz-text-muted: #47567a;
  --bz-border: #d9e1ef;
  --bz-outline: #58688c;
  --bz-radius-sm: 0.5rem;
  --bz-radius: 0.75rem;
  --bz-radius-lg: 1rem;
  --bz-shadow-sm: 0 1px 2px rgba(16, 30, 60, 0.05), 0 1px 3px rgba(16, 30, 60, 0.07);
  --bz-shadow-md: 0 12px 30px -14px rgba(16, 30, 60, 0.18);
  --bz-shadow-lg: 0 26px 50px -22px rgba(16, 30, 60, 0.3);
  --bz-grad-navy: linear-gradient(135deg, #0a1735 0%, #10265c 45%, #1e3a8a 100%);
  --bz-grad-navy-soft: linear-gradient(135deg, #1e3a8a 0%, #10265c 55%, #0a1735 100%);
  --bz-grad-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
  --bz-ease: cubic-bezier(0.2, 0.65, 0.3, 1);
}

/* Soft blueprint grid used inside dark hero bands */
.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 40%, transparent 100%);
}

/* Floating glow orbs (hero backdrop) */
.hero-orb {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(46px);
  opacity: 0.55;
  animation: sfxOrbDrift 16s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes sfxOrbDrift {
  from { transform: translate3d(-14px, -10px, 0) scale(1); }
  to   { transform: translate3d(18px, 14px, 0) scale(1.08); }
}

/* Tiny rising particles (hero) — pure CSS, GPU-friendly, minimal count */
.hero-particle {
  position: absolute;
  bottom: -12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
  opacity: 0;
  pointer-events: none;
  animation: sfxRise linear infinite;
  animation-duration: var(--dur, 9s);
  animation-delay: var(--del, 0s);
}
@keyframes sfxRise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  12%  { opacity: 0.65; }
  85%  { opacity: 0.4; }
  100% { transform: translateY(-46vh) translateX(18px); opacity: 0; }
}

/* Gold gradient text for hero keywords / highlights */
.text-gold-grad {
  background: var(--bz-grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glassmorphism helper (subtle, only on top of imagery/dark bands) */
.glass {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  backdrop-filter: blur(14px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Animated underline for nav links */
.nav-underline { position: relative; }
.nav-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  transition: right .28s var(--bz-ease);
}
.nav-underline:hover::after,
.nav-underline.is-active::after,
.nav-underline[aria-current="page"]::after { right: 0; }

/* Compact + frosted public header once the page scrolls */
header.site-header .nav-inner { height: 64px; transition: height .25s var(--bz-ease), box-shadow .25s ease; }
body.is-scrolled header.site-header .nav-inner { height: 56px; }
header.site-header {
  background-color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  backdrop-filter: blur(12px) saturate(1.25);
}
body.is-scrolled header.site-header {
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px -18px rgba(10, 23, 53, 0.35);
}

/* Mobile menu overlay + scroll lock */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 44;
  background: rgba(10, 23, 53, 0.38);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.mobile-overlay.is-open { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }
html.menu-open, body.menu-open { overscroll-behavior: none; }

/* Back-to-top floating action */
.back-to-top {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 60;
  width: 46px; height: 46px;
  border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #1e3a8a, #10265c);
  box-shadow: 0 14px 28px -12px rgba(16, 38, 92, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  opacity: 0; transform: translateY(14px) scale(.92);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s var(--bz-ease), box-shadow .2s ease, background .2s ease;
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -12px rgba(16, 38, 92, .6);
}
.back-to-top:active { transform: translateY(0) scale(.96); }

/* Premium toast (JS: window.BizoraToast) */
.bz-toast-stack {
  position: fixed; right: 16px; bottom: 16px; z-index: 120;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.bz-toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -16px rgba(10, 23, 53, .35), 0 0 0 1px rgba(217, 225, 239, .9) inset;
  color: var(--bz-text);
  font: 500 13px/1.45 'Inter', sans-serif;
  animation: bzToastIn .3s var(--bz-ease);
}
.bz-toast.is-out { animation: bzToastOut .28s ease forwards; }
.bz-toast .material-symbols-outlined { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.bz-toast--success .material-symbols-outlined { color: #15803d; }
.bz-toast--error .material-symbols-outlined { color: #b91c1c; }
.bz-toast--info .material-symbols-outlined { color: #1e3a8a; }
.bz-toast--gold .material-symbols-outlined { color: #b45309; }
@keyframes bzToastIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes bzToastOut { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* Gold-filled CTA extra lift (used with bg-gold text-navy-950) */
@media (hover: hover) and (pointer: fine) {
  a[class*="bg-gold"], button[class*="bg-gold"] {
    transition: transform .18s ease, box-shadow .25s ease, filter .25s ease;
  }
  a[class*="bg-gold"]:hover, button[class*="bg-gold"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 16px 30px -12px rgba(245, 158, 11, .55);
  }
}

/* Reveal-safe premium elevation for cards (complements existing hover rules) */
@media (prefers-reduced-motion: reduce) {
  .hero-orb, .hero-particle { animation: none !important; opacity: .35 !important; }
  .back-to-top { transition: opacity .2s ease; }
}

/* Prevent stray horizontal overflow from decorative layers */
.hero-orb, .hero-particle { overflow: hidden; }
body { overflow-x: clip; }

/* Public premium footer */
.footer-premium { border-top: 1px solid var(--bz-border); }
.footer-accent { background: linear-gradient(90deg, #1e3a8a 0%, #f59e0b 42%, #fbbf24 100%); }
.footer-strip { border-top: 1px solid var(--bz-border); }
.footer-link { position: relative; }
.footer-link::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  transition: width .25s var(--bz-ease);
}
.footer-link:hover::after { width: 100%; }
