/* ============================================================
   BRIDGEED — components.css
   Reusable UI Components:
   7. Buttons
   8. Badge
   9. Card
   10. Header & Navigation
   11. Mobile Menu Drawer & Overlay
   26. Global Illustration System (Base Classes & Desktop Positions)
   ============================================================ */

/* ===== 7. BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  padding: 14px 28px;
  border-radius: var(--radius-md);
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
  box-shadow: 0 4px 14px rgba(0, 56, 168, 0.22);
}

.btn-primary:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 6px 20px rgba(0, 132, 212, 0.3);
}

.btn-secondary {
  padding: 14px 28px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--primary-blue);
  border-color: rgba(0, 56, 168, 0.25);
}

.btn-secondary:hover {
  border-color: var(--primary-blue);
  background: rgba(0, 56, 168, 0.04);
  color: var(--primary-blue);
}

.btn-teal {
  padding: 14px 28px;
  border-radius: var(--radius-md);
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
  box-shadow: 0 4px 14px rgba(57, 168, 41, 0.22);
}

.btn-teal:hover {
  background: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: 0 6px 20px rgba(123, 201, 67, 0.35);
}

.btn-ghost {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--primary-blue);
  border-color: transparent;
  min-height: 44px;
}

.btn-ghost:hover {
  border-color: rgba(0, 56, 168, 0.15);
  background: rgba(0, 56, 168, 0.05);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 11px;
  min-height: 44px;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 13px;
  min-height: 54px;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* ===== 8. BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-teal {
  background: rgba(57, 168, 41, 0.1);
  color: var(--primary-green);
  border: 1px solid rgba(57, 168, 41, 0.25);
}

.badge-navy {
  background: rgba(0, 56, 168, 0.06);
  color: var(--primary-blue);
  border: 1px solid rgba(0, 56, 168, 0.15);
}

.badge-pulse::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.38;
  }
}

/* ===== 9. CARD ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 56, 168, 0.1);
  box-shadow: var(--shadow-sm);
}

.card-hover {
  transition: var(--transition);
}

.card-hover:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ===== 10. HEADER ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  transition: var(--transition);
}

#header.scrolled {
  background: rgba(250, 250, 252, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 56, 168, 0.1);
}

@supports not (backdrop-filter: blur(14px)) {
  #header.scrolled {
    background: rgba(250, 250, 252, 0.98);
  }
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .header-inner {
    padding: 0 40px;
  }
}

@media (min-width: 1024px) {
  .header-inner {
    padding: 0 48px;
  }
}

.header-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.header-nav {
  display: none;
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }
}

.nav-link {
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-gray);
  transition: color 0.2s;
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--primary-green);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--primary-blue);
}

.header-ctas {
  display: none;
}

@media (min-width: 1024px) {
  .header-ctas {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  color: var(--primary-blue);
}

.mobile-menu-btn:hover {
  background: rgba(0, 56, 168, 0.05);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* ===== 11. MOBILE MENU ===== */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--primary-blue);
  background-image: radial-gradient(circle at 100% 0%, rgba(0, 132, 212, 0.2), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(57, 168, 41, 0.15), transparent 40%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
}

.mobile-menu-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.mobile-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s, border-color 0.2s;
}

.mobile-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.mobile-menu-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
  margin-bottom: auto;
  padding-left: 12px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: color 0.2s, transform 0.2s;
}

.mobile-nav-link .nav-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 0.05em;
  font-family: monospace;
}

.mobile-nav-link:hover {
  color: var(--accent-green);
  transform: translateX(4px);
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 40px;
  padding: 0 12px;
}

.mobile-menu-footer-info {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu-footer-tagline {
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.mobile-menu-footer-contact {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
  align-self: flex-start;
}

.mobile-menu-footer-contact:hover {
  color: var(--accent-green);
}


/* ===== 26. GLOBAL ILLUSTRATION SYSTEM (Enterprise SaaS Design System) ===== */

/* Section-level illustration custom variables defaults */
:root {
  --illust-opacity-default: 0.25;
  --illust-z-index: 0;

  --hero-illust-w: clamp(1200px, 90vw, 1500px);
  --hero-illust-op: 0.125;

  --platform-illust-w: clamp(580px, 46vw, 780px);
  --platform-illust-op: 0.25;

  --signals-illust-w: clamp(580px, 45vw, 760px);
  --signals-illust-op: 0.25;

  --demo-illust-w: clamp(560px, 45vw, 760px);
  --demo-illust-op: 0.125;

  --compliance-illust-w: clamp(580px, 46vw, 760px);
  --compliance-illust-op: 0.125;

  --cta-illust-w: clamp(1100px, 95vw, 1650px);
  --cta-illust-op: 0.20;
}

/* Ensure sections contain bleeding illustrations without horizontal scroll */
section {
  position: relative;
  overflow: hidden;
}

/* Elevate main content & interactive elements above background illustrations */
.hero-grid>div,
.section-header,
.platform-grid,
.platform-carousel-wrap,
.signals-panel,
.signals-grid,
.demo-panel,
.demo-content-wrap,
.compliance-layout-grid,
.timeline-container,
.team-grid,
.faq-grid,
.cta-inner {
  position: relative;
  z-index: 2;
}

/* Breathing float keyframes for illustrations */
@keyframes illust-float-smooth {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-6px) scale(1.008);
  }
}

@keyframes illust-float-cta {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.02);
  }
}

/* Global Illustration Base Component Class */
.section-illustration {
  position: absolute;
  pointer-events: none;
  user-select: none;
  display: block;
  height: auto;
  max-width: none;
  z-index: var(--illust-z-index, 0);
  opacity: var(--illust-opacity, var(--illust-opacity-default));
  transition: opacity 0.4s ease, transform 0.4s ease;
  object-fit: contain;
}

/* Reusable System Modifier Classes */
.illustration-left {
  left: var(--illust-offset-x, -70px);
}

.illustration-right {
  right: var(--illust-offset-x, -60px);
}

.illustration-center {
  left: 50%;
  transform: translateX(-50%);
}

.illustration-top {
  top: var(--illust-offset-y, -30px);
}

.illustration-bottom {
  bottom: var(--illust-offset-y, 0);
}

.illustration-floating {
  animation: illust-float-smooth 10s ease-in-out infinite;
}

.illustration-background {
  z-index: 0;
}

/* --- Section-Specific Desktop Implementations (1440px+) --- */

/* 1. Hero Illustration: Doubled hero background artwork framing headline */
.illust-hero {
  width: var(--hero-illust-w);
  opacity: var(--hero-illust-op);
  left: -120px;
  top: -30px;
  filter: drop-shadow(0 12px 24px rgba(0, 56, 168, 0.08));
  animation-delay: 0s;
}

/* 2. Platform Illustration: Expanded right editorial bleed beside header */
.illust-platform {
  width: var(--platform-illust-w);
  opacity: var(--platform-illust-op);
  right: -120px;
  top: -110px;
  filter: drop-shadow(0 8px 20px rgba(57, 168, 41, 0.08));
  animation-delay: -2s;
}

/* 3. Decision Signals Illustration: Positioned in top-left side of container */
.illust-signals {
  width: var(--signals-illust-w);
  opacity: var(--signals-illust-op);
  left: -90px;
  right: auto;
  top: -100px;
  animation-delay: -4s;
}

/* 4. Demo Illustration: Positioned in top-left side of container */
.illust-demo {
  width: var(--demo-illust-w);
  opacity: var(--demo-illust-op);
  left: -90px;
  right: auto;
  top: -150px;
  animation-delay: -1.5s;
}

/* 5. Compliance Illustration: Positioned directly behind section title header */
.illust-compliance {
  width: var(--compliance-illust-w);
  opacity: var(--compliance-illust-op);
  left: -90px;
  top: -90px;
  bottom: auto;
  animation-delay: -3s;
}

/* 6. CTA Illustration: Full-bleed section background centerpiece */
.illust-cta {
  width: var(--cta-illust-w);
  opacity: var(--cta-illust-op);
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  animation: illust-float-cta 12s ease-in-out infinite;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.18));
}


