/* ============================================================
   app.css — Bomi Business Solutions Ltd.
   Global styles loaded on every page alongside Tailwind CDN.
   ============================================================ */

/* ─── Google Fonts ─────────────────────────────────────────── */
/*
 * Montserrat  — geometric sans, replaces Poppins for headings.
 *               Closest Google Fonts match to Century Gothic's
 *               clean, wide letterforms.
 * Nunito      — rounded humanist sans, replaces Inter for body.
 *               Shares Century Gothic's open, friendly character.
 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Nunito:wght@400;500;600;700&display=swap');

/* ─── CSS Custom Properties ────────────────────────────────── */
:root {
  --navy:    #1E3A5F;
  --gold:    #D4A017;
  --white:   #FFFFFF;
  --gray-bg: #F8F9FA;
  --font-heading: 'Montserrat', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --font-body:    'Nunito', 'Century Gothic', 'Trebuchet MS', sans-serif;
}

/* ─── Base ─────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: #F8F9FA;
  color: #1E3A5F;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* ─── Fade-in-up Animation ─────────────────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar-scrolled {
  background-color: #1E3A5F !important;
  transition: background-color 0.3s ease;
}

/* ─── Floating Card ─────────────────────────────────────────── */
.float-card {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-8px); }
}

/* ─── Gold Underline Decorator ──────────────────────────────── */
.gold-underline {
  display: block;
  width: 60px;
  height: 3px;
  background: #D4A017;
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ─── Count-up Numbers ──────────────────────────────────────── */
.count-up {
  font-family: var(--font-heading);
}

/* ─── Custom Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #F8F9FA; }
::-webkit-scrollbar-thumb { background: #D4A017; border-radius: 3px; }

/* ─── Mobile Menu ────────────────────────────────────────────── */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu.open {
  max-height: 600px;
  opacity: 1;
}

/* The nav itself must NOT clip the drawer */
#main-navbar {
  overflow: visible !important;
}

/* ─── Hamburger X animation ─────────────────────────────────── */
#hamburger-btn[aria-expanded="true"] .bar1 {
  transform: translateY(6.5px) rotate(45deg);
}
#hamburger-btn[aria-expanded="true"] .bar2 {
  opacity: 0;
  transform: scaleX(0);
}
#hamburger-btn[aria-expanded="true"] .bar3 {
  width: 1.25rem;
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── Navbar scroll state ────────────────────────────────────── */
.navbar-scrolled {
  background-color: rgba(30, 58, 95, 0.97) !important;
  backdrop-filter: blur(8px);
}
.navbar-scrolled .navbar-logo-text,
.navbar-scrolled .nav-link {
  color: white !important;
}
.navbar-scrolled .nav-link:hover {
  color: #D4A017 !important;
}

/* ─── Carousel Dots ─────────────────────────────────────────── */
.dot {
  width: 10px;
  height: 10px;
  background: #D1D5DB; /* gray-300 */
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dot.active {
  background: #D4A017;
}

/* ─── Dashboard Sidebar ─────────────────────────────────────── */
.sidebar {
  transition: width 0.3s ease;
}

.sidebar.collapsed {
  width: 64px;
}

/* ─── Modal ─────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
}

.modal-box {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-open  { display: flex; }
.modal-closed { display: none; }

/* ─── Toast Notifications ───────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  min-width: 280px;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-left: 4px solid transparent;
  padding: 0.75rem 1rem;
  animation: slideInRight 0.3s ease;
}

.toast.success { border-color: #22C55E; }
.toast.error   { border-color: #EF4444; }
.toast.warning { border-color: #F59E0B; }
.toast.info    { border-color: #3B82F6; }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ─── Interactive Element Transitions ───────────────────────── */
a, button, input, select, textarea {
  transition: all 0.2s ease;
}

/* ─── Stat Card Hover ────────────────────────────────────────── */
.stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30, 58, 95, 0.15);
}

/* ─── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .float-card {
    animation: none;
  }

  .toast {
    animation: none;
  }
}
