/* ==========================================================================
   MGBS Inc. - Millennium Global Business Solutions
   Executive Lead Funnel & Interactive Diagnostic Engine
   Author: Senior Full-Stack & Cloudflare Edge Engineer
   ========================================================================== */

/* --- Custom Variables & Theme Palette --- */
:root {
  --mgbs-navy: #0b2545;
  --mgbs-navy-dark: #07172c;
  --mgbs-navy-light: #134074;
  --mgbs-gold: #d4af37;
  --mgbs-gold-dark: #b89628;
  --mgbs-gold-light: #fef9c3;
  --mgbs-green: #1eaa38;
  --mgbs-green-dark: #15803d;
  --mgbs-green-light: #dcfce7;
  --mgbs-red: #ef4444;
  --mgbs-red-light: #fee2e2;
  --mgbs-slate: #475569;
  --mgbs-slate-light: #64748b;
  --mgbs-slate-ultra-light: #f1f5f9;
  --mgbs-bg: #f8fafc;
  --mgbs-card-bg: #ffffff;
  --mgbs-border: #e2e8f0;
  --mgbs-border-hover: #cbd5e1;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Montserrat', 'Inter', sans-serif;
  --font-serif: 'Cinzel', 'Trajan Pro', Georgia, serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(11, 37, 69, 0.08), 0 2px 4px -2px rgba(11, 37, 69, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(11, 37, 69, 0.1), 0 4px 6px -4px rgba(11, 37, 69, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(11, 37, 69, 0.12), 0 8px 10px -6px rgba(11, 37, 69, 0.06);
  --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.25);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Global Reset & Base Typography --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar completely across Chrome, Safari, Edge, Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

body {
  font-family: var(--font-sans);
  background-color: var(--mgbs-bg);
  color: #1e293b;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Container & Grid --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- Header & Sticky Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.08);
}

/* Fluid wide container specifically for the top header */
.site-header .container {
  max-width: 1720px;
  width: 100%;
  padding-left: clamp(1.25rem, 3.5vw, 3rem);
  padding-right: clamp(1.25rem, 3.5vw, 3rem);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1.5rem;
}

/* Brand Component Integration */
.mgbs-brand-header {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  user-select: none;
  flex-shrink: 0;
}

.mgbs-icon-badge {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.18), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  background: #041029;
}

.mgbs-brand-header:hover .mgbs-icon-badge {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35), 0 2px 6px rgba(11, 37, 69, 0.2);
}

.mgbs-icon-badge video,
.mgbs-icon-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.mgbs-text-3d-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--mgbs-navy);
  text-shadow: 
    0 1px 1px rgba(255, 255, 255, 0.8),
    0 -1px 1px rgba(0, 0, 0, 0.4),
    0 0 4px rgba(212, 175, 55, 0.45);
  pointer-events: none;
  z-index: 2;
}

.mgbs-brand-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.mgbs-brand-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--mgbs-navy);
  line-height: 1.1;
  white-space: nowrap;
}

.mgbs-brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--mgbs-slate);
  line-height: 1.25;
  margin-top: 2px;
  white-space: nowrap;
}

.mgbs-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--mgbs-green);
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
}

.mgbs-brand-pill::before {
  content: "•";
  color: var(--mgbs-gold);
  font-size: 14px;
  line-height: 0;
}

/* Nav Menu Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.25rem);
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--mgbs-slate);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--mgbs-navy);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--mgbs-gold);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--mgbs-navy);
}

.mobile-nav-toggle svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--mgbs-border);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 99;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-drawer.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Ongoing Projects Dashboard Dropdown & Mobile Section
   ========================================================================== */
.projects-dropdown-container {
  position: relative;
  display: inline-block;
}

.btn-projects-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--mgbs-border);
  color: var(--mgbs-navy);
  font-size: 0.84375rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(11, 37, 69, 0.05);
}

.btn-projects-trigger:hover,
.btn-projects-trigger:focus-visible {
  background: var(--mgbs-slate-ultra-light);
  border-color: var(--mgbs-border-hover);
  color: var(--mgbs-navy-light);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.projects-dropdown-container.open .btn-projects-trigger {
  background: #f8fafc;
  border-color: #E5A93C;
  color: var(--mgbs-navy);
  box-shadow: 0 0 0 3px rgba(229, 169, 60, 0.15);
}

.btn-projects-trigger .chevron-icon {
  transition: transform var(--transition-fast);
  color: var(--mgbs-slate);
}

.projects-dropdown-container.open .chevron-icon {
  transform: rotate(180deg);
  color: #E5A93C;
}

/* Floating Dropdown Card */
.projects-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 2rem);
  background: #0B192C;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: 0 16px 36px rgba(11, 25, 44, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s ease;
  pointer-events: none;
  z-index: 1000;
}

.projects-dropdown-container.open .projects-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem 0.75rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.7);
}

.dropdown-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.3px;
}

.dropdown-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #E5A93C;
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.3);
  padding: 2px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.dropdown-links {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
  border: 1px solid transparent;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
  background: #1E3E62;
  border-color: rgba(229, 169, 60, 0.25);
  transform: translateX(2px);
  outline: none;
}

.dropdown-item .item-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E5A93C;
  flex-shrink: 0;
  margin-top: 2px;
}

.dropdown-item:hover .item-icon-box {
  background: rgba(229, 169, 60, 0.2);
  border-color: #E5A93C;
}

.dropdown-item .item-content {
  flex: 1;
  min-width: 0;
}

.dropdown-item .item-title {
  font-size: 0.84375rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}

.dropdown-item .item-desc {
  font-size: 0.71875rem;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.35;
}

.dropdown-item .external-arrow {
  font-size: 0.8125rem;
  color: #E5A93C;
  transition: transform 0.15s ease;
}

.dropdown-item:hover .external-arrow {
  transform: translate(2px, -2px);
}

/* Mobile Drawer Projects Section */
.mobile-projects-section {
  background: #0B192C;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.mobile-projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #f8fafc;
}

.mobile-projects-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #E5A93C;
  background: rgba(229, 169, 60, 0.15);
  border: 1px solid rgba(229, 169, 60, 0.3);
  padding: 1px 7px;
  border-radius: 9999px;
}

.mobile-projects-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-project-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem;
  background: rgba(30, 62, 98, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: #ffffff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mobile-project-item:hover,
.mobile-project-item:active {
  background: #1E3E62;
  border-color: #E5A93C;
}

.mobile-project-item .proj-emoji {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.mobile-project-item .proj-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.mobile-project-item .proj-details strong {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
}

.mobile-project-item .proj-details span {
  font-size: 0.71875rem;
  color: #94a3b8;
  line-height: 1.3;
}

.mobile-project-item .proj-arrow {
  color: #E5A93C;
  font-weight: bold;
  font-size: 0.875rem;
}

/* --- Buttons & CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--mgbs-navy);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.2);
}

.btn-primary:hover {
  background-color: var(--mgbs-navy-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 37, 69, 0.3);
}

.btn-gold {
  background: linear-gradient(135deg, #d4af37 0%, #b89628 100%);
  color: #07172c;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #e5be48 0%, #c7a431 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--mgbs-navy);
  color: var(--mgbs-navy);
}

.btn-outline:hover {
  background: rgba(11, 37, 69, 0.05);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.875rem 1.875rem;
  font-size: 1rem;
}

/* --- Section Global Structure --- */
section {
  padding: 5rem 0;
  position: relative;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-full);
  color: #854d0e;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--mgbs-navy);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--mgbs-slate);
  max-width: 680px;
  line-height: 1.6;
}

.text-center {
  text-align: center;
}

.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Section --- */
.hero-section {
  padding-top: 4rem;
  padding-bottom: 5rem;
  background: radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(11, 37, 69, 0.05) 0%, transparent 45%),
              linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.executive-badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1rem;
  background: rgba(11, 37, 69, 0.04);
  border: 1px solid rgba(11, 37, 69, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.executive-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--mgbs-green);
  box-shadow: 0 0 0 3px rgba(30, 170, 56, 0.2);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(30, 170, 56, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(30, 170, 56, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(30, 170, 56, 0); }
}

.executive-badge-text {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--mgbs-navy);
  letter-spacing: 0.3px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 3.125rem;
  font-weight: 900;
  color: var(--mgbs-navy);
  line-height: 1.15;
  letter-spacing: -0.75px;
  margin-bottom: 1.25rem;
}

.hero-headline .highlight-gold {
  background: linear-gradient(135deg, #b89628 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subheadline {
  font-size: 1.2rem;
  color: var(--mgbs-slate);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-subheadline strong {
  color: var(--mgbs-navy);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Hero Executive Profile Card (Right Column) */
.hero-visual-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--mgbs-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--mgbs-gold) 0%, var(--mgbs-navy) 100%);
}

.dr-shree-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.dr-shree-avatar-frame {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--mgbs-gold);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--mgbs-navy);
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.15);
}

.dr-shree-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dr-shree-name-title h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--mgbs-navy);
  margin-bottom: 0.2rem;
}

.dr-shree-name-title p {
  font-size: 0.8125rem;
  color: var(--mgbs-slate);
  font-weight: 500;
  line-height: 1.35;
}

.dr-credentials-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.cred-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background-color: var(--mgbs-slate-ultra-light);
  color: var(--mgbs-navy);
  border: 1px solid var(--mgbs-border);
}

.cred-pill.gold {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.quote-box {
  background-color: #f8fafc;
  border-left: 3px solid var(--mgbs-gold);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* Social Proof Counters Grid */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mgbs-border);
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--mgbs-navy);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
}

.stat-suffix {
  color: var(--mgbs-gold);
  font-weight: 800;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--mgbs-slate);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0.25rem;
}

/* Industry Trust Strip */
.trust-strip {
  padding: 2.5rem 0;
  background-color: #ffffff;
  border-top: 1px solid var(--mgbs-border);
  border-bottom: 1px solid var(--mgbs-border);
}

.trust-title {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mgbs-slate-light);
  margin-bottom: 1.5rem;
}

.trust-tags-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #f8fafc;
  border: 1px solid var(--mgbs-border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mgbs-slate);
  transition: all var(--transition-fast);
}

.trust-tag:hover {
  border-color: var(--mgbs-gold);
  color: var(--mgbs-navy);
  transform: translateY(-1px);
}

/* --- Interactive "3 Ds" Diagnostic Engine --- */
section[id],
div[id="authority"] {
  scroll-margin-top: 80px;
}

.diagnostic-section {
  background-color: #ffffff;
  padding: 1.5rem 0 3.5rem;
}

.diagnostic-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.d-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.125rem 2rem;
  background: #ffffff;
  border: 2px solid var(--mgbs-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: left;
  user-select: none;
}

.d-tab-btn:hover {
  border-color: var(--mgbs-navy-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.d-tab-btn.active {
  border-color: var(--mgbs-navy);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.12);
  position: relative;
}

.d-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--mgbs-gold);
  border-radius: 3px 3px 0 0;
}

.d-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.125rem;
  font-family: var(--font-display);
}

.d-tab-btn[data-target="defects"] .d-icon-circle {
  background: var(--mgbs-red-light);
  color: var(--mgbs-red);
}

.d-tab-btn[data-target="deviations"] .d-icon-circle {
  background: #fef3c7;
  color: #b45309;
}

.d-tab-btn[data-target="delays"] .d-icon-circle {
  background: #e0f2fe;
  color: #0284c7;
}

.d-tab-btn.active[data-target="defects"] .d-icon-circle {
  background: var(--mgbs-red);
  color: #ffffff;
}

.d-tab-btn.active[data-target="deviations"] .d-icon-circle {
  background: #b45309;
  color: #ffffff;
}

.d-tab-btn.active[data-target="delays"] .d-icon-circle {
  background: #0284c7;
  color: #ffffff;
}

.d-tab-text-wrap {
  display: flex;
  flex-direction: column;
}

.d-tab-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--mgbs-navy);
}

.d-tab-subtitle {
  font-size: 0.8125rem;
  color: var(--mgbs-slate-light);
  font-weight: 600;
}

/* Diagnostic Content Panel */
.diagnostic-panel-container {
  background: #ffffff;
  border: 1px solid var(--mgbs-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 2rem 2.25rem;
  position: relative;
  overflow: hidden;
}

.diagnostic-panel-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mgbs-gold) 0%, var(--mgbs-navy) 100%);
}

.diagnostic-panel-content {
  display: none;
  animation: fadeIn var(--transition-normal);
}

.diagnostic-panel-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-header-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.panel-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panel-category-pill.defects {
  background: var(--mgbs-red-light);
  color: var(--mgbs-red);
}

.panel-category-pill.deviations {
  background: #fef3c7;
  color: #b45309;
}

.panel-category-pill.delays {
  background: #e0f2fe;
  color: #0284c7;
}

.panel-focus-area {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mgbs-slate);
}

.panel-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.diagnostic-card-col {
  background: #f8fafc;
  border: 1px solid var(--mgbs-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.card-col-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--mgbs-border);
}

.col-icon {
  font-size: 1.25rem;
}

.col-heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--mgbs-navy);
}

.card-col-body {
  flex-grow: 1;
}

.symptom-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.symptom-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.45;
}

.symptom-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.symptom-item.symptom svg {
  color: var(--mgbs-red);
}

.symptom-item.cause svg {
  color: #b45309;
}

.symptom-item.solution svg {
  color: var(--mgbs-green);
}

.panel-action-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--mgbs-border);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.panel-footer-quote {
  font-size: 0.9375rem;
  color: var(--mgbs-slate);
  font-style: italic;
  max-width: 580px;
}

/* --- Framework & Philosophy Section --- */
.philosophy-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 6rem 0;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.methodology-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.methodology-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--mgbs-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.methodology-item:hover {
  border-color: var(--mgbs-gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.meth-num {
  width: 36px;
  height: 36px;
  background: var(--mgbs-navy);
  color: var(--mgbs-gold);
  font-weight: 800;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  flex-shrink: 0;
}

.meth-text h4 {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--mgbs-navy);
  margin-bottom: 0.25rem;
}

.meth-text p {
  font-size: 0.875rem;
  color: var(--mgbs-slate);
  line-height: 1.5;
}

/* 8 Rs Framework Graphic Box */
.framework-card {
  background: var(--mgbs-navy);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.framework-card::after {
  content: '8 Rs';
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-family: var(--font-display);
  font-size: 9rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  line-height: 1;
}

.framework-header {
  margin-bottom: 2rem;
}

.framework-tag {
  color: var(--mgbs-gold);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.framework-header h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
}

.eight-rs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.r-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition-fast);
}

.r-box:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--mgbs-gold);
  transform: translateY(-2px);
}

.r-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--mgbs-gold);
  flex-shrink: 0;
}

.r-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
}

/* --- Dedicated "Meet the Founder" Section (Option B) --- */
.authority-section {
  padding: 5.5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--mgbs-border);
  position: relative;
}

.authority-card-wrapper {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--mgbs-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}

.authority-card-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mgbs-gold) 0%, var(--mgbs-navy) 100%);
}

.authority-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: center;
}

.authority-portrait-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.founder-photo-frame {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--mgbs-gold) 0%, var(--mgbs-navy) 100%);
  box-shadow: 0 12px 32px rgba(11, 37, 69, 0.18), 0 0 20px rgba(212, 175, 55, 0.25);
  margin-bottom: 1.5rem;
}

.founder-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  display: block;
}

.founder-badge-overlay {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mgbs-navy);
  color: var(--mgbs-gold);
  border: 1px solid var(--mgbs-gold);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.founder-cred-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  margin-top: 0.5rem;
}

.founder-cred-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  border: 1px solid var(--mgbs-border);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--mgbs-navy);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.founder-cred-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.authority-content-col {
  display: flex;
  flex-direction: column;
}

.authority-headline {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--mgbs-navy);
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}

.authority-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #b45309;
  margin-bottom: 1.25rem;
}

.authority-bio-p {
  font-size: 0.95rem;
  color: var(--mgbs-slate);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.authority-quote {
  background: rgba(11, 37, 69, 0.03);
  border-left: 4px solid var(--mgbs-gold);
  padding: 1rem 1.35rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 0.925rem;
  color: #1e293b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.authority-milestones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.milestone-box {
  background: #ffffff;
  border: 1px solid var(--mgbs-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.milestone-stat {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--mgbs-navy);
}

.milestone-lbl {
  font-size: 0.75rem;
  color: var(--mgbs-slate);
  font-weight: 600;
  margin-top: 0.2rem;
  line-height: 1.3;
}

.authority-cta-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- High-Conversion Lead Capture Funnel --- */
.contact-section {
  padding: 6rem 0;
  background-color: #ffffff;
  position: relative;
}

.contact-wrapper {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background: #ffffff;
  border: 1px solid var(--mgbs-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.contact-header-bar {
  background: var(--mgbs-navy);
  color: #ffffff;
  padding: 2.5rem 3rem;
  position: relative;
}

.contact-header-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--mgbs-gold);
}

.contact-header-bar h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contact-header-bar p {
  color: #cbd5e1;
  font-size: 0.9375rem;
  max-width: 600px;
}

.form-body {
  padding: 3rem;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mgbs-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .required {
  color: var(--mgbs-red);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1.5px solid var(--mgbs-border);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  color: #0f172a;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--mgbs-navy-light);
  box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.1);
}

.form-input.invalid,
.form-select.invalid,
.form-textarea.invalid {
  border-color: var(--mgbs-red);
  background-color: #fffaf0;
}

.form-input.valid {
  border-color: var(--mgbs-green);
}

.form-error-msg {
  font-size: 0.75rem;
  color: var(--mgbs-red);
  font-weight: 600;
  display: none;
  margin-top: 0.25rem;
}

.form-input.invalid ~ .form-error-msg,
.form-select.invalid ~ .form-error-msg {
  display: block;
}

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

.form-footer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mgbs-border);
  flex-wrap: wrap;
  gap: 1.25rem;
}

.form-guarantee {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8125rem;
  color: var(--mgbs-slate);
}

.form-guarantee svg {
  width: 20px;
  height: 20px;
  color: var(--mgbs-green);
  flex-shrink: 0;
}

/* Spinner inside button */
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-gold .btn-spinner {
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000000;
}

.btn.loading .btn-spinner {
  display: inline-block;
}

.btn.loading .btn-text {
  opacity: 0.75;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Executive Footer --- */
.site-footer {
  background-color: var(--mgbs-navy-dark);
  color: #94a3b8;
  padding: 5rem 0 2.5rem;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  transition: color var(--transition-fast);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--mgbs-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: #64748b;
}

.footer-badges {
  display: flex;
  gap: 1.5rem;
}

.footer-badges span {
  color: #cbd5e1;
  font-weight: 600;
}

/* --- Success Confirmation Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(7, 23, 44, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 540px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--mgbs-border);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-check-circle {
  width: 68px;
  height: 68px;
  background: var(--mgbs-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--mgbs-green);
}

.modal-check-circle svg {
  width: 36px;
  height: 36px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--mgbs-navy);
  margin-bottom: 0.75rem;
}

.modal-desc {
  font-size: 0.9375rem;
  color: var(--mgbs-slate);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.modal-receipt-box {
  background: #f8fafc;
  border: 1px solid var(--mgbs-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: left;
  font-size: 0.8125rem;
  color: #334155;
  margin-bottom: 2rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.receipt-row strong {
  color: var(--mgbs-navy);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--mgbs-navy-dark);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 4px solid var(--mgbs-gold);
  opacity: 0;
  transform: translateY(15px);
  transition: all var(--transition-normal);
  pointer-events: auto;
  max-width: 380px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  border-left-color: var(--mgbs-red);
}

.toast.success {
  border-left-color: var(--mgbs-green);
}

/* ==========================================================================
   Floating Section Navigation FAB (Bottom Right)
   ========================================================================== */
.fab-section-nav {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: rgba(11, 25, 44, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 169, 60, 0.3);
  box-shadow: 0 12px 32px rgba(11, 25, 44, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-full);
  padding: 0.35rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.fab-section-nav:hover {
  border-color: rgba(229, 169, 60, 0.6);
  box-shadow: 0 16px 40px rgba(11, 25, 44, 0.55), 0 0 20px rgba(229, 169, 60, 0.2);
}

.fab-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: rgba(30, 62, 98, 0.45);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fab-nav-btn:hover:not(:disabled) {
  background: #1E3E62;
  color: #E5A93C;
  border-color: rgba(229, 169, 60, 0.4);
  transform: scale(1.08);
}

.fab-nav-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.fab-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.fab-section-indicator {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #E5A93C;
  padding: 0.15rem 0.25rem;
  user-select: none;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .fab-section-nav {
    bottom: 1.25rem;
    right: 1.25rem;
    transform: scale(0.9);
    transform-origin: bottom right;
  }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1280px) {
  .nav-menu {
    gap: 1.25rem;
  }
  .nav-link {
    font-size: 0.875rem;
  }
  .mgbs-brand-pill,
  .mgbs-brand-subtitle {
    display: none;
  }
  .nav-actions .btn {
    padding: 0.6rem 1.15rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual-card {
    max-width: 540px;
    margin: 0 auto;
  }
  .panel-grid-3col {
    grid-template-columns: 1fr;
  }
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .authority-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .authority-portrait-col {
    max-width: 420px;
    margin: 0 auto;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* Switch to Mobile Drawer on Tablet to prevent header cramping */
  .nav-menu {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .projects-dropdown-container {
    display: none;
  }
  .hero-headline {
    font-size: 2.25rem;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .form-grid-2col {
    grid-template-columns: 1fr;
  }
  .diagnostic-tabs {
    flex-direction: column;
  }
  .d-tab-btn {
    width: 100%;
  }
  .diagnostic-panel-container {
    padding: 1.5rem;
  }
  .form-body {
    padding: 1.75rem;
  }
  .contact-header-bar {
    padding: 1.75rem;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .nav-actions .btn {
    display: none;
  }
  .mgbs-brand-subtitle, 
  .mgbs-brand-pill {
    display: none;
  }
  .mgbs-icon-badge {
    width: 44px;
    height: 44px;
  }
  .mgbs-brand-title {
    font-size: 18px;
  }
  .eight-rs-grid {
    grid-template-columns: 1fr;
  }
  .authority-card-wrapper {
    padding: 2rem 1.25rem;
  }
  .authority-headline {
    font-size: 1.85rem;
  }
  .authority-milestones-grid {
    grid-template-columns: 1fr;
  }
  .founder-photo-frame {
    width: 180px;
    height: 180px;
  }
}

/* --- Landscape & Compact Height Viewports (Auto-Align to Available Screen Space) --- */
@media (max-height: 920px) {
  .site-header,
  .nav-container {
    height: 68px;
  }
  .diagnostic-section {
    padding-top: 0.85rem;
    padding-bottom: 1.75rem;
  }
  .diagnostic-tabs {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
  }
  .section-badge {
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
  }
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
  }
  .section-desc {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  .d-tab-btn {
    padding: 0.6rem 1.15rem;
  }
  .d-icon-circle {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
  .diagnostic-panel-container {
    padding: 1.25rem 1.5rem;
  }
  .panel-header-badge-row {
    margin-bottom: 0.85rem;
  }
}

/* ==========================================================================
   CAREER TRANSITION EXCELLENCE (CTEx) & INTERACTIVE AUDIO (PROJECT 1.1)
   ========================================================================== */
.ctex-section {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid var(--mgbs-border);
  position: relative;
  overflow-x: clip;
  width: 100%;
}

.ctex-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: stretch;
  margin-top: 3rem;
  width: 100%;
  max-width: 100%;
}

.ctex-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--mgbs-border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.ctex-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.ctex-selection-card .ctex-card-header {
  background: var(--mgbs-navy);
  color: #ffffff;
  padding: 1.75rem 2rem;
  border-bottom: 3px solid var(--mgbs-gold);
}

.ctex-selector-label-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ctex-card-tag {
  background: rgba(212, 175, 55, 0.18);
  color: var(--mgbs-gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.ctex-dropdown-label {
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 600;
}

.ctex-select-wrapper {
  position: relative;
  width: 100%;
}

.ctex-select-input {
  width: 100%;
  background: #ffffff;
  color: var(--mgbs-navy);
  border: 2px solid var(--mgbs-gold);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.ctex-select-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.ctex-tier-body {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

.ctex-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--mgbs-border);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ctex-price-val {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 900;
  color: var(--mgbs-navy);
  letter-spacing: -0.5px;
  line-height: 1;
}

.ctex-price-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.ctex-price-sub {
  font-size: 0.8125rem;
  color: var(--mgbs-slate);
  font-weight: 600;
}

.ctex-guarantee-pill {
  background: #ecfdf5;
  color: #047857;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid #a7f3d0;
}

.ctex-tier-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ctex-tier-heading {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--mgbs-navy);
  line-height: 1.3;
}

.ctex-tier-persona {
  color: var(--mgbs-slate);
  font-size: 0.925rem;
  line-height: 1.5;
}

.ctex-deliverables-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.ctex-deliverables-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--mgbs-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.ctex-deliverables-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
}

.ctex-deliverables-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.45;
}

.check-icon {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.ctex-cta-wrapper {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.5rem;
}

.ctex-enroll-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  transition: all 0.2s ease;
}

.ctex-enroll-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.ctex-cta-subtext {
  text-align: center;
  font-size: 0.775rem;
  color: var(--mgbs-slate);
  margin: 0;
}

/* Audio Player Card */
.ctex-audio-card {
  border-top: 4px solid var(--mgbs-navy);
}

.ctex-audio-header {
  background: var(--mgbs-navy);
  color: #ffffff;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-bottom: 3px solid var(--mgbs-gold);
}

.dr-audio-avatar {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
}

.dr-audio-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mgbs-gold);
}

.audio-live-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border: 2px solid var(--mgbs-navy);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
  animation: audioPulse 2s infinite;
}

@keyframes audioPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.dr-audio-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
}

.audio-badge {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--mgbs-gold);
  text-transform: uppercase;
  letter-spacing: 0.75px;
}

.audio-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.audio-speaker {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.ctex-player-wrapper {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

.player-controls-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
}

.btn-audio-play {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--mgbs-gold);
  color: var(--mgbs-navy);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease, background-color 0.15s ease;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.35);
}

.btn-audio-play:hover {
  transform: scale(1.06);
  background: #e0be48;
}

.player-progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.player-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mgbs-slate);
}

.chapter-active-label {
  color: var(--mgbs-navy);
  font-weight: 700;
  max-width: 55%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-track {
  position: relative;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
}

.player-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mgbs-navy) 0%, var(--mgbs-gold) 100%);
  border-radius: 4px;
  transition: width 0.1s linear;
}

.chapter-nav-header {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--mgbs-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chapter-pills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.chapter-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chapter-pill:hover {
  background: #ffffff;
  border-color: var(--mgbs-gold);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chapter-pill.active {
  background: #ffffff;
  border: 2px solid var(--mgbs-navy);
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.12);
}

.ch-idx {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--mgbs-gold);
  background: var(--mgbs-navy);
  border-radius: 4px;
  padding: 0.2rem 0.45rem;
  flex-shrink: 0;
}

.chapter-pill.active .ch-idx {
  background: var(--mgbs-gold);
  color: var(--mgbs-navy);
}

.ch-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.ch-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--mgbs-navy);
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.ch-cue {
  font-size: 0.75rem;
  color: var(--mgbs-slate);
  font-weight: 500;
}

.audio-endorsement-box {
  background: #f1f5f9;
  border-left: 3px solid var(--mgbs-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1.15rem;
  margin-top: auto;
}

.endorsement-quote {
  font-size: 0.8125rem;
  font-style: italic;
  color: #334155;
  line-height: 1.45;
}

.endorsement-author {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mgbs-navy);
  margin-top: 0.35rem;
}

@media (max-width: 1080px) {
  .ctex-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .chapter-pills-grid {
    grid-template-columns: 1fr;
  }
  .ctex-tier-body,
  .ctex-player-wrapper {
    padding: 1.5rem 1.25rem;
  }
  .ctex-selection-card .ctex-card-header,
  .ctex-audio-header {
    padding: 1.25rem 1.25rem;
  }
  .ctex-price-val {
    font-size: 2.25rem;
  }
}

@media (max-width: 480px) {
  .ctex-price-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .ctex-price-meta {
    align-items: flex-start;
  }
}

