/* ==============================================================================
   RAHA MEDISYNC — CANONICAL PUBLIC WEB DESIGN SYSTEM
   Brand Tokens, Modern Architectural Typography, Responsive & RTL Engine
   ============================================================================== */

:root {
  /* Brand Authority */
  --raha-navy: #0A192F;
  --raha-teal: #0E7490;
  --raha-deep-teal: #155E75;
  --raha-gold: #C5A059;
  --raha-gold-light: #F4E8D1;
  --raha-gold-hover: #b08d47;
  
  /* Surfaces & Neutrals */
  --surface-alabaster: #FBFBFB;
  --surface-cloud: #F1F5F9;
  --surface-white: #FFFFFF;
  --surface-card: #FFFFFF;
  --surface-card-hover: #F8FAFC;
  --surface-navy: #0A192F;
  --surface-navy-light: #112240;
  
  /* Typographic & Line Contrast */
  --text-ink: #0F172A;
  --text-slate: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;
  --border-subtle: #E2E8F0;
  --border-focus: #0E7490;
  --border-gold: rgba(197, 160, 89, 0.4);

  /* Functional / Status */
  --status-success: #15803D;
  --status-warning: #B45309;
  --status-info: #0369A1;

  /* Typography */
  --font-arabic: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', Tahoma, system-ui, sans-serif;
  --font-latin: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  
  /* Layout Bounds */
  --max-content-width: 1200px;
  --nav-height: 80px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(10, 25, 47, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(10, 25, 47, 0.07);
  --shadow-lg: 0 12px 32px -4px rgba(10, 25, 47, 0.12);
  --shadow-gold: 0 4px 20px rgba(197, 160, 89, 0.25);
  
  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--surface-alabaster);
  color: var(--text-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Direction-Aware Base */
body {
  font-family: var(--font-arabic);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-ink);
  background-color: var(--surface-alabaster);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html[lang="en"] body {
  font-family: var(--font-latin);
  line-height: 1.6;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--raha-navy);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2.2rem, 3.5vw + 1rem, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 2.2vw + 0.5rem, 2.25rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.2rem, 1.4vw + 0.4rem, 1.55rem);
}

p {
  margin-bottom: 1rem;
}

p.lead {
  font-size: clamp(1.05rem, 1.1vw + 0.4rem, 1.2rem);
  color: var(--text-slate);
  line-height: 1.8;
}

a {
  color: var(--raha-teal);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

a:hover {
  color: var(--raha-deep-teal);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-content-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.header-container {
  max-width: 1440px;
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

section[id] {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.section {
  padding-block: 5.5rem;
  position: relative;
}

.section-cloud {
  background-color: var(--surface-cloud);
}

.section-navy {
  background-color: var(--surface-navy);
  color: var(--text-inverse);
}

.section-heading-wrap {
  max-width: 820px;
  margin-bottom: 2.75rem;
}

.text-center {
  text-align: center;
  margin-inline: auto;
}

/* ==============================================================================
   Header Architecture: 3 Stable Regions (Brand, Navigation, Actions)
   ============================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(251, 251, 251, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.header-container {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2vw, 1.5rem);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

/* Region A: BRAND (Canonical H1R Symbol + Localized HTML Wordmark & Tagline + Subordinate Beta) */
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  min-width: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition-smooth);
}

.brand-link:hover {
  opacity: 0.92;
}

.brand-link:focus-visible {
  outline: 2px solid var(--raha-teal);
  outline-offset: 4px;
}

.brand-symbol-img {
  height: 42px;
  width: 42px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: start;
  line-height: 1.15;
  user-select: none;
}

.brand-wordmark {
  display: block;
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--raha-navy);
  line-height: 1.2;
  white-space: nowrap;
}

[dir="ltr"] .brand-wordmark {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
}

.brand-tagline {
  display: block;
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--raha-teal);
  line-height: 1.2;
  white-space: nowrap;
}

[dir="ltr"] .brand-tagline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.01em;
}

.brand-beta-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-latin);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.14rem 0.38rem;
  border-radius: var(--radius-pill);
  background-color: rgba(14, 116, 144, 0.08);
  color: var(--raha-deep-teal);
  border: 1px solid rgba(14, 116, 144, 0.24);
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}

/* Region B: PRIMARY NAVIGATION (Max 4 Desktop Primary Links) */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-primary-list {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  flex-wrap: nowrap;
}

.nav-primary-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--raha-navy);
  padding: 0.35rem 0.65rem;
  min-height: 36px;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition-smooth), background-color var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-primary-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  inset-inline: 0.65rem;
  height: 2px;
  background-color: var(--raha-teal);
  transform: scaleX(0);
  transition: transform var(--transition-smooth);
  border-radius: 2px;
}

.nav-primary-link:hover {
  color: var(--raha-teal);
  background-color: rgba(14, 116, 144, 0.04);
}

.nav-primary-link.active {
  color: var(--raha-teal);
  font-weight: 600;
}

.nav-primary-link.active::after {
  transform: scaleX(1);
}

.nav-primary-link:focus-visible {
  outline: 2px solid var(--raha-teal);
  outline-offset: 2px;
}

/* Region C: ACTIONS (Language Switch, Menu Button, WhatsApp CTA) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.lang-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.38rem 0.65rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--raha-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  box-sizing: border-box;
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.lang-toggle-btn:hover {
  border-color: var(--raha-teal);
  color: var(--raha-teal);
  background-color: rgba(14, 116, 144, 0.04);
}

.lang-toggle-btn:focus-visible {
  outline: 2px solid var(--raha-teal);
  outline-offset: 2px;
}

.lang-text-full {
  display: inline;
}

.lang-text-short {
  display: none;
}

.nav-menu-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.38rem 0.65rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--raha-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  box-sizing: border-box;
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.nav-menu-btn:hover,
.nav-menu-btn[aria-expanded="true"] {
  border-color: var(--raha-teal);
  color: var(--raha-teal);
  background-color: rgba(14, 116, 144, 0.04);
}

.nav-menu-btn:focus-visible {
  outline: 2px solid var(--raha-teal);
  outline-offset: 2px;
}

.header-wa-btn {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.38rem 0.85rem;
  min-height: 38px;
  gap: 0.45rem;
  border-radius: var(--radius-pill);
  box-sizing: border-box;
}

/* ==============================================================================
   Complete Navigation Drawer Modal (Accessible Dialog with 9 Anchors)
   ============================================================================== */
.full-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
}

.full-nav-drawer[hidden] {
  display: none !important;
}

.full-nav-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 25, 47, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.full-nav-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: 100%;
  max-width: 380px;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  background-color: var(--surface-white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  z-index: 2001;
  animation: slideDrawer 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDrawer {
  from {
    transform: translateX(var(--slide-dir, 100%));
  }
  to {
    transform: translateX(0);
  }
}

[dir="rtl"] .full-nav-panel {
  --slide-dir: -100%;
}

.full-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  min-height: 60px;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--surface-white);
  box-sizing: border-box;
}

.full-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.full-nav-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--raha-navy);
}

.full-nav-close-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--raha-navy);
  transition: all var(--transition-smooth);
}

.full-nav-close-btn:hover {
  border-color: var(--raha-teal);
  color: var(--raha-teal);
  background-color: rgba(14, 116, 144, 0.04);
}

.full-nav-close-btn:focus-visible {
  outline: 2px solid var(--raha-teal);
  outline-offset: 2px;
}

.full-nav-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.85rem 1.25rem 2rem;
  box-sizing: border-box;
}

.full-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.full-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--raha-navy);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
}

.full-nav-link:hover,
.full-nav-link.active {
  background-color: var(--surface-cloud);
  color: var(--raha-teal);
  border-color: rgba(14, 116, 144, 0.15);
}

.full-nav-link:focus-visible {
  outline: 2px solid var(--raha-teal);
  outline-offset: 2px;
}

.full-nav-num {
  font-family: var(--font-latin);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--raha-teal);
  background-color: rgba(14, 116, 144, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.full-nav-text {
  font-size: 0.95rem;
  font-weight: 500;
}

.full-nav-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--surface-cloud);
  box-sizing: border-box;
}

.full-nav-wa-btn {
  width: 100%;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 480px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}

.btn-primary {
  background-color: var(--raha-teal);
  color: var(--surface-white);
}

.btn-primary:hover {
  background-color: var(--raha-deep-teal);
  color: var(--surface-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
}

.btn-whatsapp:hover {
  background-color: #20BD5A;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--raha-navy);
  color: var(--raha-navy);
}

.btn-outline:hover {
  background-color: var(--raha-navy);
  color: var(--surface-white);
}

/* Trust Pill / Badge */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background-color: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--raha-deep-teal);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.trust-pill-gold {
  background-color: var(--raha-gold-light);
  border-color: var(--raha-gold);
  color: #785A18;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--raha-teal);
}

/* ==============================================================================
   1. Hero Component (Reduced Text Density, Calm Premium Feel)
   ============================================================================== */
.hero-content-wrap {
  max-width: 900px;
}

.hero-headline {
  margin-bottom: 1.25rem;
  color: var(--raha-navy);
}

.hero-lead {
  margin-bottom: 2rem;
  max-width: 820px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-privacy-notice {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* ==============================================================================
   2. Coordination Scope Grid (4 Distinct Pillars)
   ============================================================================== */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.scope-card {
  background-color: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.scope-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 116, 144, 0.3);
}

.scope-role-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.scope-tag-verified {
  background-color: #DCFCE7;
  color: #15803D;
}

.scope-tag-hospital {
  background-color: #E0F2FE;
  color: #0369A1;
}

.scope-tag-patient {
  background-color: #FEF3C7;
  color: #92400E;
}

.scope-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--raha-navy);
}

.scope-body {
  color: var(--text-slate);
  font-size: 0.94rem;
  line-height: 1.75;
  flex-grow: 1;
  margin: 0;
}

/* ==============================================================================
   3. Interactive Coordination Triad (Patient / Raha / Hospital)
   ============================================================================== */
.triad-container {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-sm);
}

.triad-actor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.triad-tab-btn {
  background: var(--surface-cloud);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.4rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--raha-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-smooth);
}

.triad-tab-btn:hover {
  border-color: var(--raha-teal);
  color: var(--raha-teal);
}

.triad-tab-btn.active {
  background-color: var(--raha-navy);
  border-color: var(--raha-navy);
  color: var(--surface-white);
  box-shadow: var(--shadow-sm);
}

.triad-display-card {
  background-color: var(--surface-alabaster);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-smooth);
}

.triad-display-header {
  margin-bottom: 1.5rem;
}

.triad-display-title {
  font-size: 1.35rem;
  color: var(--raha-navy);
  margin-bottom: 0.5rem;
}

.triad-display-summary {
  font-size: 1rem;
  color: var(--text-slate);
  line-height: 1.7;
}

.triad-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.triad-detail-item {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.93rem;
  color: var(--text-ink);
  line-height: 1.6;
}

.triad-detail-icon {
  color: var(--raha-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==============================================================================
   4. Practical Document Center
   ============================================================================== */
.document-center-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 2px solid var(--raha-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.document-center-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #785A18;
  background-color: var(--raha-gold-light);
  border: 1px solid var(--raha-gold);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.85rem;
  margin-bottom: 1rem;
}

.document-center-title {
  font-size: 1.45rem;
  color: var(--raha-navy);
  margin-bottom: 0.75rem;
}

.document-center-desc {
  font-size: 1rem;
  color: var(--text-slate);
  line-height: 1.8;
  max-width: 860px;
  margin-bottom: 1.75rem;
}

.document-center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==============================================================================
   5. Patient Verification Guides Component
   ============================================================================== */
.guides-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.guide-filter-btn {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--raha-navy);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.guide-filter-btn:hover {
  border-color: var(--raha-teal);
  color: var(--raha-teal);
}

.guide-filter-btn.active {
  background: var(--raha-teal);
  border-color: var(--raha-teal);
  color: var(--surface-white);
  box-shadow: var(--shadow-sm);
}

.guides-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.guide-card {
  background-color: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
}

.guide-card:hover {
  border-color: rgba(14, 116, 144, 0.4);
  box-shadow: var(--shadow-md);
}

.guide-card-header {
  margin-bottom: 1.25rem;
}

.guide-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.guide-category-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--raha-teal);
  background: rgba(14, 116, 144, 0.08);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
}

.guide-confidence-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #15803D;
  background: #DCFCE7;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
}

.guide-review-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-slate);
  background: var(--surface-cloud);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
}

.guide-title {
  font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.45rem);
  color: var(--raha-navy);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.guide-question-callout {
  background: var(--surface-alabaster);
  border-inline-start: 4px solid var(--raha-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
}

html[dir="rtl"] .guide-question-callout {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.guide-question-text {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--raha-navy);
  margin: 0;
}

.guide-summary {
  color: var(--text-slate);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.guide-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.2rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--raha-teal);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-smooth);
}

.guide-toggle-btn:hover {
  background: rgba(14, 116, 144, 0.05);
  border-color: var(--raha-teal);
}

.guide-toggle-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-smooth);
}

.guide-card.expanded .guide-toggle-icon {
  transform: rotate(180deg);
}

.guide-expandable-content {
  display: none;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.guide-card.expanded .guide-expandable-content {
  display: block;
}

.guide-section-block {
  margin-bottom: 1.75rem;
}

.guide-block-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--raha-navy);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-questions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.guide-q-item {
  background: var(--surface-alabaster);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  color: var(--raha-navy);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.6;
}

.guide-q-num {
  font-weight: 700;
  color: var(--raha-gold);
  flex-shrink: 0;
}

.guide-checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.guide-check-item {
  background: rgba(14, 116, 144, 0.03);
  border: 1px solid rgba(14, 116, 144, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  color: var(--text-ink);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.6;
}

.guide-check-icon {
  color: var(--raha-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.guide-doc-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #92400E;
}

.guide-doc-title {
  font-weight: 700;
  color: #B45309;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.guide-source-footnote {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-subtle);
}

/* ==============================================================================
   6. Charter 8-Point Pillars Grid
   ============================================================================== */
.charter-seal-box {
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.03) 0%, rgba(197, 160, 89, 0.08) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.charter-seal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--raha-teal), var(--raha-gold));
}

.charter-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.charter-point-card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all var(--transition-smooth);
}

.charter-point-card:hover {
  border-color: var(--raha-gold);
  box-shadow: var(--shadow-sm);
}

.charter-check-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--raha-gold);
  color: var(--raha-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ==============================================================================
   7. Process Grid & Card Architectures
   ============================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 116, 144, 0.3);
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background-color: rgba(14, 116, 144, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--raha-teal);
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-body {
  color: var(--text-slate);
  font-size: 0.95rem;
  line-height: 1.7;
  flex-grow: 1;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.process-step-card {
  background-color: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  position: relative;
  transition: all var(--transition-smooth);
}

.process-step-card:hover {
  border-color: var(--raha-teal);
  box-shadow: var(--shadow-md);
}

.step-num-badge {
  font-family: var(--font-latin);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--raha-gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==============================================================================
   8. FAQ Accordion Component
   ============================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-inline: auto;
}

.faq-item {
  background-color: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--raha-teal);
}

.faq-trigger {
  width: 100%;
  padding: 1.5rem 2rem;
  background: transparent;
  border: none;
  text-align: start;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--raha-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-smooth);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  display: none;
  padding: 0 2rem 1.5rem 2rem;
  color: var(--text-slate);
  font-size: 0.98rem;
  line-height: 1.8;
  border-top: 1px solid var(--surface-cloud);
  padding-top: 1.25rem;
}

.faq-item.open .faq-content {
  display: block;
}

/* Medical Disclaimer Banner */
.notice-banner {
  background-color: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  color: #92400E;
  font-size: 0.95rem;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.notice-banner-icon {
  flex-shrink: 0;
  color: #D97706;
}

/* ==============================================================================
   9. Footer Architecture & Quiet Corporate Metadata
   ============================================================================== */
.site-footer {
  background-color: var(--surface-navy);
  color: #94A3B8;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

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

.footer-brand-desc {
  color: #94A3B8;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-top: 1.25rem;
  max-width: 380px;
}

.footer-col-title {
  color: var(--surface-white);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -0.4rem;
  right: 0;
  width: 24px;
  height: 2px;
  background-color: var(--raha-gold);
}

html[lang="en"] .footer-col-title::after {
  right: auto;
  left: 0;
}

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

.footer-links a {
  color: #94A3B8;
  font-size: 0.92rem;
  transition: color var(--transition-smooth);
}

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

.footer-corporate-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  line-height: 1.8;
  color: #94A3B8;
}

.footer-hosts-badge {
  display: block;
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--raha-gold);
  margin-top: 0.5rem;
}

.footer-beta-note {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  line-height: 1.7;
  color: #94A3B8;
}

.footer-disclaimer-box {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 3rem;
  font-size: 0.85rem;
  line-height: 1.8;
  color: #64748B;
}

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

/* ==============================================================================
   10. Accessible Configuration Modal (BLOCKED_CONFIG)
   ============================================================================== */
.raha-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.raha-modal[hidden] {
  display: none !important;
}

.raha-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 25, 47, 0.65);
  backdrop-filter: blur(4px);
}

.raha-modal-content {
  position: relative;
  background-color: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  max-width: 520px;
  width: 100%;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.raha-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.raha-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #FEF3C7;
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.raha-modal-title {
  font-size: 1.25rem;
  color: var(--raha-navy);
  margin: 0;
}

.raha-modal-body {
  font-size: 0.98rem;
  color: var(--text-slate);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.raha-modal-footer {
  display: flex;
  justify-content: flex-end;
}

/* Sticky Bottom WhatsApp Mobile Dock */
.mobile-sticky-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: rgba(10, 25, 47, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border-gold);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.mobile-dock-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-dock-info {
  display: flex;
  flex-direction: column;
}

.mobile-dock-title {
  color: var(--surface-white);
  font-size: 0.88rem;
  font-weight: 600;
}

.mobile-dock-sub {
  color: #94A3B8;
  font-size: 0.75rem;
}

/* ==============================================================================
   Reduced Motion Support (Strict WCAG 2.1 Compliance)
   ============================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==============================================================================
   Responsive Media Queries
   ============================================================================== */
@media (max-width: 1024px) {
  :root {
    --nav-height: 76px;
  }

  .site-header {
    height: var(--nav-height);
  }

  .brand-symbol-img {
    height: 40px;
    width: 40px;
  }

  .brand-wordmark {
    font-size: 1.15rem;
  }

  .brand-tagline {
    font-size: 0.70rem;
  }

  /* Region B primary navigation hidden: full menu accessible via nav-menu-btn */
  .header-nav {
    display: none !important;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }

  .site-header {
    height: var(--nav-height);
  }

  .header-container {
    padding-inline: 0.85rem;
  }

  .header-brand {
    gap: 0.45rem;
  }

  .brand-symbol-img {
    height: 36px;
    width: 36px;
  }

  .brand-wordmark {
    font-size: 1.05rem;
  }

  .brand-tagline {
    font-size: 0.66rem;
  }

  .brand-beta-tag {
    font-size: 0.58rem;
    padding: 0.12rem 0.32rem;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .header-actions .btn-whatsapp {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    min-height: 36px;
  }

  .lang-toggle-btn,
  .nav-menu-btn {
    min-height: 36px;
    padding: 0.35rem 0.55rem;
    font-size: 0.8rem;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-sticky-dock {
    display: block;
  }

  body {
    padding-bottom: 74px; /* Room for sticky dock */
  }
  
  .card-grid, .scope-grid, .process-grid {
    grid-template-columns: 1fr;
  }

  .triad-container, .document-center-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-height: 64px;
  }

  .site-header {
    height: var(--nav-height);
  }

  .header-container {
    padding-inline: 0.5rem;
  }

  .nav-inner {
    gap: 0.35rem;
  }

  .header-brand {
    gap: 0.3rem;
    min-width: 0;
    flex-shrink: 1;
  }

  .brand-link {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
  }

  .brand-symbol-img {
    height: 32px;
    width: 32px;
  }

  .brand-wordmark {
    font-size: 0.96rem;
  }

  .brand-tagline {
    font-size: 0.62rem;
  }

  .brand-beta-tag {
    font-size: 0.52rem;
    padding: 0.1rem 0.28rem;
  }

  .header-actions {
    gap: 0.3rem;
    flex-shrink: 0;
  }

  .lang-text-full {
    display: none;
  }

  .lang-text-short {
    display: inline;
    font-size: 0.78rem;
    font-weight: 700;
  }

  .menu-btn-label {
    display: none;
  }

  .nav-menu-btn {
    min-width: 36px;
    min-height: 36px;
    padding: 0.35rem;
    justify-content: center;
  }

  .header-actions .wa-btn-label {
    display: none;
  }

  .header-actions .btn-whatsapp {
    padding: 0.35rem;
    min-width: 36px;
    min-height: 36px;
    justify-content: center;
    border-radius: var(--radius-sm);
  }

  .lang-toggle-btn {
    padding: 0.3rem 0.45rem;
    gap: 0.25rem;
    min-height: 36px;
  }

  .container {
    padding-inline: 0.75rem;
  }

  .triad-container, .document-center-card {
    padding: 1rem 0.75rem;
  }

  .triad-display-card {
    padding: 1rem 0.75rem;
  }
}

@media (max-width: 360px) {
  :root {
    --nav-height: 60px;
  }

  .site-header {
    height: var(--nav-height);
  }

  .header-container {
    padding-inline: 0.3rem;
  }

  .nav-inner {
    gap: 0.2rem;
  }

  .header-brand {
    gap: 0.2rem;
  }

  .brand-symbol-img {
    height: 28px;
    width: 28px;
  }

  .brand-wordmark {
    font-size: 0.88rem;
  }

  .brand-tagline {
    font-size: 0.56rem;
  }

  .brand-beta-tag {
    display: none;
  }

  .header-actions {
    gap: 0.2rem;
  }

  .lang-toggle-btn {
    min-width: 30px;
    min-height: 32px;
    padding: 0.2rem 0.3rem;
    font-size: 0.72rem;
  }

  .nav-menu-btn {
    min-width: 30px;
    min-height: 32px;
    padding: 0.2rem;
  }

  .header-actions .btn-whatsapp {
    min-width: 30px;
    min-height: 32px;
    padding: 0.2rem;
  }
}

