/* ============================================================
   BedHub Operators Portal — Shared Stylesheet
   Design System: Nunito + Nunito Sans | Blue #2D6DB5 | Orange #E8732A
   ============================================================ */

/* ── Google Fonts import (fallback for pages not using <link>) ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Nunito+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand blues */
  --blue:         #2D6DB5;
  --blue-dark:    #1E4F8A;
  --blue-mid:     #3D7EC9;
  --blue-light:   #D6E8F9;
  --blue-pale:    #EDF4FD;

  /* Brand oranges */
  --orange:       #E8732A;
  --orange-dark:  #C45B18;
  --orange-light: #FDE8D8;

  /* Neutrals */
  --dark-navy:    #112240;
  --mid-navy:     #3D5A80;
  --muted:        #7896B2;
  --light:        #ADC4D8;
  --off-white:    #F5F8FC;
  --border:       #E2EAF3;
  --border-mid:   #C8D9EE;
  --white:        #FFFFFF;

  /* Status */
  --status-active:   #1A8A4A;
  --status-active-bg:#D4F0E2;
  --status-pending:  #C47B10;
  --status-pending-bg:#FEF2D9;
  --status-expired:  #C02828;
  --status-expired-bg:#FDDCDC;

  /* Typography */
  --font-heading: 'Nunito', sans-serif;
  --font-body:    'Nunito Sans', sans-serif;

  /* Spacing scale */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill:100px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(17,34,64,0.07), 0 1px 2px rgba(17,34,64,0.05);
  --shadow-md:  0 4px 12px rgba(17,34,64,0.10), 0 2px 4px rgba(17,34,64,0.06);
  --shadow-lg:  0 12px 32px rgba(17,34,64,0.13), 0 4px 8px rgba(17,34,64,0.08);
  --shadow-xl:  0 24px 56px rgba(17,34,64,0.18), 0 8px 16px rgba(17,34,64,0.10);

  /* Nav */
  --nav-height: 68px;

  /* Transitions */
  --transition: 0.22s ease;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark-navy);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  max-width: 100%;
  display: block;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark-navy);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }
em { font-style: italic; }

/* ============================================================
   3. LAYOUT CONTAINERS
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container--narrow {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container--wide {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

/* Section wrapper */
.section {
  padding-block: var(--space-3xl);
}

.section--sm {
  padding-block: var(--space-2xl);
}

.section--lg {
  padding-block: 120px;
}

.section--white  { background: var(--white); }
.section--off    { background: var(--off-white); }
.section--dark   { background: var(--dark-navy); color: var(--white); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-sm);
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: var(--space-md);
}

.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header--centered {
  text-align: center;
}

.section-header--centered .section-lead {
  margin-inline: auto;
}

/* ============================================================
   4. NAVIGATION — SHARED TOP NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 8px rgba(17,34,64,0.06);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1320px;
}

/* Logo */
.nav-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.nav-logo .logo-bed {
  color: var(--blue);
}

.nav-logo .logo-hub {
  color: var(--orange);
}

.nav-logo .logo-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 6px;
  padding: 2px 6px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-self: center;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--mid-navy);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--blue);
  background: var(--blue-pale);
}

.nav-links a.active {
  color: var(--blue);
  background: var(--blue-pale);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
  border: none;
  transition: background var(--transition);
}

.nav-hamburger:hover {
  background: var(--off-white);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark-navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) var(--space-lg);
  z-index: 999;
  box-shadow: var(--shadow-md);
  flex-direction: column;
  gap: var(--space-xs);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mid-navy);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--blue);
  background: var(--blue-pale);
}

.nav-mobile .nav-mobile-divider {
  height: 1px;
  background: var(--border);
  margin-block: var(--space-sm);
}

.nav-mobile .nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
}

/* Nav breadcrumb variant */
.nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: var(--space-lg);
  padding-left: var(--space-lg);
  border-left: 1px solid var(--border);
}

.nav-breadcrumb a {
  color: var(--muted);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.8rem;
}

.nav-breadcrumb a:hover {
  color: var(--blue);
}

.nav-breadcrumb .sep {
  color: var(--border-mid);
}

.nav-breadcrumb .current {
  color: var(--dark-navy);
  font-weight: 700;
  font-family: var(--font-heading);
}

/* Body offset for fixed nav */
.nav-offset {
  padding-top: var(--nav-height);
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  letter-spacing: 0.01em;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary — orange */
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: 0 3px 12px rgba(232,115,42,0.28);
}

.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(232,115,42,0.36);
}

/* Secondary — blue solid */
.btn-secondary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 3px 12px rgba(45,109,181,0.22);
}

.btn-secondary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(45,109,181,0.30);
}

/* Ghost — blue outline */
.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-ghost:hover {
  background: var(--blue-pale);
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}

/* Ghost white — for dark backgrounds */
.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-ghost-white:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.85);
  color: var(--white);
}

/* Ghost orange outline */
.btn-ghost-orange {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.btn-ghost-orange:hover {
  background: var(--orange-light);
  color: var(--orange-dark);
  border-color: var(--orange-dark);
}

/* Sizes */
.btn-sm {
  font-size: 0.78rem;
  padding: 7px 16px;
}

.btn-lg {
  font-size: 1rem;
  padding: 14px 30px;
}

/* Link button */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: color var(--transition), gap var(--transition);
}

.btn-link:hover {
  color: var(--orange-dark);
  gap: 10px;
}

.btn-link-blue {
  color: var(--blue);
}

.btn-link-blue:hover {
  color: var(--blue-dark);
}

/* ============================================================
   6. HERO SECTIONS
   ============================================================ */
.hero {
  min-height: 580px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Dark blue gradient hero */
.hero--dark {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #1a3260 50%, var(--blue-dark) 100%);
  color: var(--white);
}

.hero--dark h1,
.hero--dark h2,
.hero--dark .section-title {
  color: var(--white);
}

/* Split hero (left content, right visual) */
.hero--split {
  min-height: 620px;
}

.hero--split .hero-content {
  flex: 1;
  padding-right: var(--space-xl);
}

.hero--split .hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* White left hero */
.hero--white-left .hero-content {
  background: var(--white);
  color: var(--dark-navy);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding-block: var(--space-3xl);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero-title .accent-blue   { color: var(--blue); }
.hero-title .accent-orange { color: var(--orange); }

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: var(--space-xl);
  max-width: 560px;
}

.hero--dark .hero-subtitle {
  color: rgba(213,228,248,0.85);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hero video/visual panel */
.hero-video-panel {
  background: linear-gradient(145deg, var(--blue-dark) 0%, var(--blue-mid) 60%, #1d4e9e 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16/11;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
}

.hero-video-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 30%, rgba(61,126,201,0.4) 0%, transparent 70%);
}

.play-btn {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  position: relative;
  z-index: 1;
}

.play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 20px;
  border-color: transparent transparent transparent rgba(255,255,255,0.95);
  margin-left: 4px;
}

.play-btn:hover {
  background: rgba(255,255,255,0.24);
  transform: scale(1.08);
}

.hero-video-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(17,34,64,0.85) 0%, transparent 100%);
  z-index: 1;
}

.hero-video-caption p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  margin-bottom: 4px;
}

.hero-video-caption blockquote {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  border: none;
  padding: 0;
  font-style: italic;
}

/* ============================================================
   7. CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--blue-light);
}

/* Stat card */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.stat-card .stat-delta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--status-active);
  margin-top: 4px;
}

/* Feature card */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--blue-light);
}

.feature-card .card-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.feature-card .card-tag {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-mid);
}

.feature-card .card-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--dark-navy);
  line-height: 1.3;
  margin: 0;
}

.feature-card .card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.feature-card .card-action {
  margin-top: auto;
}

/* Featured (dark) card variant */
.feature-card--featured {
  background: var(--dark-navy);
  border-color: transparent;
  color: var(--white);
}

.feature-card--featured .card-title {
  color: var(--white);
}

.feature-card--featured .card-desc {
  color: rgba(213,228,248,0.75);
}

.feature-card--featured .card-icon {
  background: rgba(45,109,181,0.3);
}

.feature-card--featured:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 16px 48px rgba(17,34,64,0.4);
}

/* Module card variant */
.module-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
  text-decoration: none;
  color: inherit;
}

.module-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--blue-light);
}

/* ============================================================
   8. PRICING CARDS
   ============================================================ */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card--featured {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}

.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.pricing-card--featured h3,
.pricing-card--featured .pricing-price,
.pricing-card--featured .pricing-period {
  color: var(--white);
}

.pricing-card--featured .pricing-feature {
  color: rgba(255,255,255,0.85);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--dark-navy);
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-price sup {
  font-size: 1.2rem;
  vertical-align: super;
  font-weight: 700;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--mid-navy);
}

.pricing-feature::before {
  content: '✓';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}

.pricing-card--featured .pricing-feature::before {
  background: rgba(255,255,255,0.18);
  color: var(--white);
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-block: var(--space-sm);
}

.pricing-card--featured .pricing-divider {
  background: rgba(255,255,255,0.18);
}

/* ============================================================
   9. STATS ROW
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.stats-row--3 {
  grid-template-columns: repeat(3, 1fr);
}

.stats-row--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Inline stat (used in hero/dark sections) */
.stat-inline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-inline .num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.02em;
}

.stat-inline .lbl {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ============================================================
   10. FORMS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mid-navy);
  letter-spacing: 0.01em;
}

.form-label .required {
  color: var(--orange);
  margin-left: 2px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

.form-error {
  font-size: 0.78rem;
  color: var(--status-expired);
  font-weight: 600;
  margin-top: 4px;
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

.form-group.has-error .form-control {
  border-color: var(--status-expired);
  background: #fff8f8;
}

.form-group.has-error .form-control:focus {
  box-shadow: 0 0 0 3px rgba(192,40,40,0.12);
}

.form-group.is-valid .form-control {
  border-color: var(--status-active);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--dark-navy);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition),
              background var(--transition);
  line-height: 1.5;
  appearance: none;
}

.form-control:hover {
  border-color: var(--border-mid);
}

.form-control:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(61,126,201,0.15);
  background: var(--white);
}

.form-control::placeholder {
  color: var(--light);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237896B2' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-mid);
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
  margin-top: 1px;
  accent-color: var(--blue);
}

.form-check label {
  font-size: 0.875rem;
  color: var(--mid-navy);
  cursor: pointer;
  line-height: 1.5;
}

/* ============================================================
   11. BADGES & PILLS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  line-height: 1.4;
}

.badge-blue {
  background: var(--blue-pale);
  color: var(--blue);
}

.badge-orange {
  background: var(--orange-light);
  color: var(--orange-dark);
}

.badge-green {
  background: var(--status-active-bg);
  color: var(--status-active);
}

.badge-red {
  background: var(--status-expired-bg);
  color: var(--status-expired);
}

.badge-navy {
  background: rgba(17,34,64,0.08);
  color: var(--dark-navy);
}

.badge-muted {
  background: var(--off-white);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  line-height: 1;
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-pill--active {
  background: var(--status-active-bg);
  color: var(--status-active);
}

.status-pill--active::before {
  background: var(--status-active);
}

.status-pill--pending {
  background: var(--status-pending-bg);
  color: var(--status-pending);
}

.status-pill--pending::before {
  background: var(--status-pending);
}

.status-pill--expired {
  background: var(--status-expired-bg);
  color: var(--status-expired);
}

.status-pill--expired::before {
  background: var(--status-expired);
}

/* ============================================================
   12. TAB NAVIGATION
   ============================================================ */
.tab-nav {
  display: flex;
  gap: 2px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  width: fit-content;
}

.tab-nav--full {
  width: 100%;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  padding: 0;
  gap: 0;
}

.tab-btn {
  font-family: var(--font-heading);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--blue);
  background: var(--blue-pale);
}

.tab-btn.active {
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.tab-nav--full .tab-btn {
  border-radius: 0;
  padding: 12px 20px;
  position: relative;
  background: transparent;
}

.tab-nav--full .tab-btn.active {
  color: var(--blue);
  box-shadow: none;
}

.tab-nav--full .tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px 2px 0 0;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ============================================================
   13. PROGRESS BARS
   ============================================================ */
.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mid-navy);
}

.progress-value {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
}

.progress-track {
  height: 8px;
  background: var(--blue-pale);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-mid) 100%);
  border-radius: var(--radius-pill);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar--orange {
  background: linear-gradient(90deg, var(--orange-dark) 0%, var(--orange) 100%);
}

.progress-bar--green {
  background: linear-gradient(90deg, var(--status-active) 0%, #22a85d 100%);
}

/* ============================================================
   14. ALERT / COUNTDOWN BANNER
   ============================================================ */
.alert-banner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  border: 1px solid transparent;
}

.alert-banner--warning {
  background: var(--status-pending-bg);
  border-color: rgba(196,123,16,0.25);
  color: var(--status-pending);
}

.alert-banner--danger {
  background: var(--status-expired-bg);
  border-color: rgba(192,40,40,0.2);
  color: var(--status-expired);
}

.alert-banner--info {
  background: var(--blue-pale);
  border-color: var(--blue-light);
  color: var(--blue-dark);
}

.countdown-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1rem;
  color: var(--dark-navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}

.countdown-timer .sep {
  color: var(--border-mid);
  font-weight: 400;
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark-navy);
  color: rgba(213,228,248,0.75);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-xl);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-md);
  display: block;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-md);
}

.footer-logo .bed { color: var(--blue-light); }
.footer-logo .hub { color: var(--orange); }

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(213,228,248,0.6);
  margin-bottom: var(--space-lg);
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(213,228,248,0.65);
  text-decoration: none;
  transition: color var(--transition);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(213,228,248,0.65);
  margin-bottom: 10px;
}

.footer-contact-item strong {
  color: rgba(213,228,248,0.9);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(213,228,248,0.4);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(213,228,248,0.45);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: rgba(213,228,248,0.85);
}

/* ============================================================
   16. CAROUSEL / SLIDER
   ============================================================ */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--mid-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition);
}

.carousel-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-mid);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
}

.carousel-dot.active {
  background: var(--blue);
  transform: scale(1.25);
}

/* ============================================================
   17. GRIDS (Module/Feature grids)
   ============================================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* ============================================================
   18. UTILITY CLASSES
   ============================================================ */

/* Text colors */
.text-blue       { color: var(--blue) !important; }
.text-blue-dark  { color: var(--blue-dark) !important; }
.text-orange     { color: var(--orange) !important; }
.text-navy       { color: var(--dark-navy) !important; }
.text-muted      { color: var(--muted) !important; }
.text-white      { color: var(--white) !important; }
.text-mid        { color: var(--mid-navy) !important; }

/* Background colors */
.bg-white        { background: var(--white) !important; }
.bg-off          { background: var(--off-white) !important; }
.bg-navy         { background: var(--dark-navy) !important; }
.bg-blue         { background: var(--blue) !important; }
.bg-blue-pale    { background: var(--blue-pale) !important; }
.bg-orange       { background: var(--orange) !important; }
.bg-orange-light { background: var(--orange-light) !important; }

/* Flex helpers */
.flex            { display: flex; }
.flex-col        { display: flex; flex-direction: column; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.items-end       { align-items: flex-end; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.flex-wrap       { flex-wrap: wrap; }
.flex-1          { flex: 1; }
.gap-xs          { gap: var(--space-xs); }
.gap-sm          { gap: var(--space-sm); }
.gap-md          { gap: var(--space-md); }
.gap-lg          { gap: var(--space-lg); }
.gap-xl          { gap: var(--space-xl); }

/* Spacing */
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }

.pt-sm  { padding-top: var(--space-sm); }
.pt-md  { padding-top: var(--space-md); }
.pt-lg  { padding-top: var(--space-lg); }
.pb-sm  { padding-bottom: var(--space-sm); }
.pb-md  { padding-bottom: var(--space-md); }
.pb-lg  { padding-bottom: var(--space-lg); }

/* Typography utils */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.font-bold   { font-weight: 700; }
.font-black  { font-weight: 900; }
.font-medium { font-weight: 500; }
.uppercase   { text-transform: uppercase; }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.78rem; }
.text-lg     { font-size: 1.1rem; }

/* Display */
.hidden        { display: none !important; }
.block         { display: block; }
.inline-flex   { display: inline-flex; }
.w-full        { width: 100%; }

/* Borders */
.border-top    { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.rounded       { border-radius: var(--radius-md); }
.rounded-lg    { border-radius: var(--radius-lg); }
.rounded-pill  { border-radius: var(--radius-pill); }

/* ============================================================
   19. DIVIDER
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border);
  margin-block: var(--space-xl);
}

.divider--dark {
  background: rgba(255,255,255,0.08);
}

/* ============================================================
   20. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* --- Tablet: 768px --- */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
    --space-3xl: 64px;
    --space-2xl: 48px;
  }

  /* Nav */
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-breadcrumb {
    display: none;
  }

  /* Hero */
  .hero-inner {
    flex-direction: column;
    padding-block: var(--space-2xl);
    gap: var(--space-xl);
  }

  .hero--split .hero-content {
    padding-right: 0;
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-inline: auto;
  }

  .hero-video-panel {
    max-width: 100%;
  }

  /* Grids */
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Pricing */
  .pricing-card--featured {
    transform: scale(1);
  }

  .pricing-card--featured:hover {
    transform: translateY(-4px);
  }
}

/* --- Mobile: 375px --- */
@media (max-width: 480px) {
  :root {
    --space-3xl: 48px;
    --space-2xl: 40px;
  }

  .container {
    padding-inline: var(--space-md);
  }

  /* Grids → single column */
  .grid-3,
  .grid-4,
  .grid-2,
  .grid-auto {
    grid-template-columns: 1fr;
  }

  .stats-row,
  .stats-row--3,
  .stats-row--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  /* Buttons: stack on mobile */
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Tab nav scroll */
  .tab-nav {
    overflow-x: auto;
    width: 100%;
  }
}

/* --- Desktop: 1200px+ --- */
@media (min-width: 1200px) {
  .container {
    padding-inline: var(--space-xl);
  }
}
