/**
 * ============================================================================
 * Beatsy Solutions - Base Styles & Typography Scale
 * Architecture: base.css (Resets, Typography Scale, Keyframes, Text Utilities)
 * ============================================================================
 */

/* ── 1. Global Resets & Document Foundation ─────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--beatsy-bg, var(--beatsy-bg));
}

/* ── 2. Shared Keyframe Animations ─────────────────────────────────────── */

/* ── 3. Authoritative Body & Typography Foundation ───────────────────────── */
body {
  margin: 0;
  padding: 0;
  font-family: var(--bs-font-family);
  font-size: var(--bs-text-body, 0.9375rem);
  font-weight: var(--bs-fw-normal, 400);
  line-height: var(--bs-lh-body, 1.55);
  color: var(--bs-text, var(--beatsy-gray-700));
  background-color: var(--beatsy-bg, var(--beatsy-bg));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Headings System (h1–h6 + Display — Preserved Scale & Hierarchy) ─────── */
h1, .h1, .bs-h1,
h2, .h2, .bs-h2,
h3, .h3, .bs-h3,
h4, .h4, .bs-h4,
h5, .h5, .bs-h5,
h6, .h6, .bs-h6,
.bs-display {
  font-family: var(--bs-font-family);
  color: var(--beatsy-heading, var(--beatsy-text-dark));
  margin-top: 0;
  margin-bottom: 0.5em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bs-display {
  font-size: var(--bs-text-display);
  line-height: var(--bs-lh-tight);
  font-weight: var(--bs-fw-bold);
  letter-spacing: -0.025em;
}

h1, .h1, .bs-h1 {
  font-size: var(--bs-text-h1);
  line-height: var(--bs-lh-heading);
  font-weight: var(--bs-fw-bold);
  letter-spacing: -0.02em;
}

h2, .h2, .bs-h2 {
  font-size: var(--bs-text-h2);
  line-height: var(--bs-lh-heading);
  font-weight: var(--bs-fw-bold);
  letter-spacing: -0.015em;
}

h3, .h3, .bs-h3 {
  font-size: var(--bs-text-h3);
  line-height: var(--bs-lh-heading);
  font-weight: var(--bs-fw-bold);
  letter-spacing: -0.01em;
}

h4, .h4, .bs-h4 {
  font-size: var(--bs-text-h4);
  line-height: var(--bs-lh-subheading);
  font-weight: var(--bs-fw-semibold);
  letter-spacing: -0.005em;
}

h5, .h5, .bs-h5 {
  font-size: var(--bs-text-h5);
  line-height: 1.35;
  font-weight: var(--bs-fw-semibold);
}

h6, .h6, .bs-h6 {
  font-size: var(--bs-text-h6);
  line-height: 1.4;
  font-weight: var(--bs-fw-semibold);
}

/* ─── Typography Utility Classes (fs-1 to fs-6) ─────────────────────────── */
.fs-1 { font-size: var(--bs-text-h1) !important; }
.fs-2 { font-size: var(--bs-text-h2) !important; }
.fs-3 { font-size: var(--bs-text-h3) !important; }
.fs-4 { font-size: var(--bs-text-h4) !important; }
.fs-5 { font-size: var(--bs-text-h5) !important; }
.fs-6 { font-size: var(--bs-text-h6) !important; }

/* ── Centralized Paragraph & Text Elements (Referenced from .beatsy-hero-lead) ── */
p,
.beatsy-hero-lead,
.bs-prose p,
.blog-body-text p {
  font-family: var(--bs-font-family);
  font-size: var(--bs-text-body);
  line-height: var(--bs-lh-body);
  font-weight: var(--bs-fw-normal);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

p {
  margin-top: 0;
  margin-bottom: var(--bs-space-4);
  color: var(--bs-text);
}

.beatsy-hero-lead {
  font-size: var(--bs-text-lead);
  line-height: var(--bs-lh-lead);
  max-width: 540px;
  margin-bottom: 1.5rem;
  color: #475569;
}

li {
  font-size: var(--bs-text-body);
  line-height: var(--bs-lh-body);
  color: var(--bs-text);
}

/* Card paragraph harmonization */
.card p,
.card .card-text,
.package-card p {
  font-size: 0.9125rem;
  line-height: 1.5;
}

/* Lead paragraph / Subtitles */
.bs-lead, .lead, .sh-lead, .section-lead-text, .section-desc-lead {
  font-family: var(--bs-font-family);
  font-size: var(--bs-text-lead);
  line-height: var(--bs-lh-lead);
  color: var(--bs-text-secondary);
}

/* Small text — 14px */
small, .small, .bs-small {
  font-size: var(--bs-text-sm);
  line-height: var(--bs-lh-small);
}

/* Caption — 12px */
.bs-caption {
  font-size: var(--bs-text-xs);
  line-height: 1.4;
  color: var(--bs-text-muted);
}

.bs-muted {
  color: var(--bs-text-muted);
}

strong, b {
  font-weight: var(--bs-fw-bold);
}

/* ─── Eyebrow / Section Label ─── */
.bs-eyebrow {
  display: inline-block;
  margin-bottom: var(--bs-space-3);
  font-size: var(--bs-text-xs);
  line-height: 1.4;
  font-weight: var(--bs-fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bs-primary);
}

/* ─── Prose Constraint (65-70ch) ─── */
.bs-prose {
  max-width: var(--bs-prose-max);
}

.bs-prose p {
  margin-bottom: var(--bs-space-5);
}

/* ─── Utility Text Classes (Harmonized with Design System Tokens) ─── */
.text-label    { font-size: var(--bs-text-xs); font-weight: var(--bs-fw-bold); letter-spacing: 0.08em; text-transform: uppercase; }
.text-label-sm { font-size: var(--bs-text-xs); font-weight: var(--bs-fw-bold); letter-spacing: 0.06em; text-transform: uppercase; }
.text-label-xs { font-size: 0.7rem;            font-weight: var(--bs-fw-bold); letter-spacing: 0.05em; text-transform: uppercase; }
.text-body-lg  { font-size: var(--bs-text-lg); line-height: 1.6; }
.text-body-sm  { font-size: var(--bs-text-sm); line-height: var(--bs-lh-small); }
.text-body-xs  { font-size: var(--bs-text-xs); line-height: 1.4; }
.text-caption  { font-size: var(--bs-text-xs); line-height: 1.4; color: var(--bs-text-muted); }

a {
  color: var(--beatsy-blue); text-decoration: none; transition: var(--beatsy-transition);
}

a:hover {
  color: var(--beatsy-blue-dark);
}

.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6, 
.text-white p, .text-white li, .text-white span, .text-white small {
  color: #fff !important;
}

.text-white a:not(.btn) {
  color: rgba(255, 255, 255, 0.8) !important;
}

.text-white a:not(.btn):hover {
  color: #fff !important;
}

.text-primary {
  color: var(--beatsy-blue) !important;
}

.text-warning {
  color: var(--beatsy-orange) !important;
}

.topbar-social.text-success:hover {
  background: #25d366; border-color: #25d366;
}

body > section,
body > div:not(.beatsy-header):not(.mobile-menu):not(.body-overlay):not(.main-wrapper):not(.portal-main-wrapper) {
  isolation: isolate;
}

.tooltip {
  z-index: var(--z-index-tooltip) !important;
}

.toast {
  z-index: var(--z-index-toast) !important;
}

.main-wrapper {
  /* Removed stacking context to allow modals inside to layer above global header */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

/* heading color in white-background contexts — dark slate for readability */
/* (All other heading font properties are set in the Typography Scale above) */

.gradient-text, 
.section-title h2 span, 
.hero-slide-content h1 span,
.display-5 span,
.text-primary,
[class*="text-gradient"] {
  background: none !important; -webkit-background-clip: initial !important; -webkit-text-fill-color: initial !important; color: var(--beatsy-blue) !important; background-clip: initial !important; text-fill-color: initial !important;
}

.text-warning, .logo-text-sub {
  color: var(--beatsy-orange) !important;
}


/* ── 4. Standard Sizing Utilities (Mapped to Beatsy Design System v1.0) ── */
.fs-10px  { font-size: var(--bs-text-xs) !important; }
.fs-11px  { font-size: var(--bs-text-xs) !important; }
.fs-12px  { font-size: var(--bs-text-xs) !important; }
.fs-13px  { font-size: var(--bs-text-sm) !important; }
.fs-14px  { font-size: var(--bs-text-sm) !important; }
.fs-15px  { font-size: var(--bs-text-base) !important; }
.fs-xs, .extra-small { font-size: var(--bs-text-xs) !important; }
.fs-7     { font-size: var(--bs-text-sm) !important; }
.fs-075rem { font-size: var(--bs-text-xs) !important; }
.fs-076rem { font-size: var(--bs-text-xs) !important; }
.fs-085rem { font-size: var(--bs-text-sm) !important; }
.fs-105rem { font-size: var(--bs-text-lg) !important; }
.fs-110rem { font-size: var(--bs-text-lg) !important; }
.fs-185rem { font-size: var(--bs-text-h2) !important; }

.ls-05px  { letter-spacing: 0.5px !important; }
.ls-08px  { letter-spacing: 0.8px !important; }
.ls-1px   { letter-spacing: 1px !important; }
.tracking-wider { letter-spacing: 0.05em !important; }

.lh-150 { line-height: 1.5 !important; }
.lh-160 { line-height: var(--bs-lh-body, 1.6) !important; }
.lh-165, .leading-relaxed { line-height: 1.65 !important; }

.fw-light     { font-weight: 300 !important; }
.fw-normal    { font-weight: var(--bs-fw-normal, 400) !important; }
.fw-medium    { font-weight: var(--bs-fw-medium, 500) !important; }
.fw-semibold  { font-weight: var(--bs-fw-semibold, 600) !important; }
.fw-bold      { font-weight: var(--bs-fw-bold, 700) !important; }
.fw-extrabold { font-weight: var(--bs-fw-extrabold, 800) !important; }
.fw-black     { font-weight: var(--fw-black) !important; }

.py-6 { padding-top: var(--bs-space-16) !important; padding-bottom: var(--bs-space-16) !important; }
.py-7 { padding-top: var(--bs-space-20) !important; padding-bottom: var(--bs-space-20) !important; }
.py-lg-6 { padding-top: var(--bs-space-20) !important; padding-bottom: var(--bs-space-20) !important; }
.mb-125rem { margin-bottom: var(--bs-space-5) !important; }
.max-w-fit { max-width: fit-content !important; }

.shadow-beatsy { box-shadow: var(--beatsy-shadow-md) !important; }
.shadow-2xs { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important; }
.shadow-xs { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important; }

.transition { transition: var(--beatsy-transition) !important; }
.transition-all { transition: all 0.25s ease-in-out !important; }
.transition-hover { transition: transform 0.25s ease, box-shadow 0.25s ease !important; }
.hover-up:hover { transform: translateY(-3px) !important; }
.hover-shadow:hover { box-shadow: var(--beatsy-shadow-hover) !important; }
.hover-danger:hover { color: #ef4444 !important; }
.hover-slide:hover { transform: translateX(4px) !important; }

.min-vh-50 { min-height: 50vh !important; }
.border-white-10 { border-color: rgba(255, 255, 255, 0.1) !important; }
.pulse-green { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--beatsy-green); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); animation: pulseGlow 2s infinite; }
.glass-morph-dark { background: rgba(4, 21, 39, 0.75); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); }

/* ── 5. Preloader & Keyframes (Lines 1330-1387 of beatsy.original.css) ──── */
/* ─── Keyframes & Animations ────────────────────────────── */

