/* ============================================================
   أكاديمية تتبع الاتجاه — Landing Page Styles
   Section-based · RTL · Premium financial aesthetic
   ============================================================ */

:root {
  /* Colors */
  --bg-primary: #FAF8F5;
  --bg-secondary: #F0EDE8;
  --bg-dark: #0F1A1A;
  --bg-card: #FFFFFF;
  --bg-card-dark: #152424;

  --text-primary: #1A1F2E;
  --text-secondary: #4A5268;
  --text-muted: #7A8299;
  --text-inverse: #F5F3EF;

  --accent-teal: #0D5C5C;
  --accent-teal-light: #1A7A6E;
  --accent-teal-soft: rgba(13, 92, 92, 0.08);
  --accent-gold: #B8922A;
  --accent-gold-soft: rgba(184, 146, 42, 0.12);
  --accent-green: #1E8A6E;

  --border: rgba(26, 31, 46, 0.08);
  --border-strong: rgba(26, 31, 46, 0.14);
  --shadow-sm: 0 2px 8px rgba(15, 26, 26, 0.04);
  --shadow-md: 0 8px 32px rgba(15, 26, 26, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 26, 26, 0.12);

  /* Typography */
  --font-heading: 'Cairo', sans-serif;
  --font-body: 'Tajawal', sans-serif;

  /* Spacing */
  --section-py: clamp(4rem, 8vw, 7rem);
  --container-max: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.btn-primary {
  background: var(--accent-teal);
  color: var(--text-inverse);
  border-color: var(--accent-teal);
}
.btn-primary:hover {
  background: var(--accent-teal-light);
  border-color: var(--accent-teal-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--accent-teal);
  border-color: var(--accent-teal);
}
.btn-outline:hover {
  background: var(--accent-teal-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-light {
  background: var(--text-inverse);
  color: var(--accent-teal);
  border-color: var(--text-inverse);
}
.btn-light:hover {
  background: var(--bg-secondary);
}

.btn-light-outline {
  background: transparent;
  color: var(--text-inverse);
  border-color: rgba(245, 243, 239, 0.4);
}
.btn-light-outline:hover {
  background: rgba(245, 243, 239, 0.1);
  border-color: var(--text-inverse);
}

.link-arrow {
  color: var(--accent-teal);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.2s var(--ease);
}
.link-arrow:hover { opacity: 0.8; }

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  max-width: 240px;
  overflow: hidden;
}
.logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}
.logo-image {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 220px !important;
  max-height: 52px !important;
  object-fit: contain;
}
.site-header .logo img,
.site-header .custom-logo {
  width: auto !important;
  height: auto !important;
  max-width: 220px !important;
  max-height: 52px !important;
}
.logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
}
.logo .custom-logo {
  width: auto;
  max-height: 44px;
  object-fit: contain;
}
.logo-fallback {
  display: inline-flex;
  align-items: center;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-teal-light) 100%);
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-right: 2px solid rgba(255,255,255,0.9);
  border-top: 2px solid rgba(255,255,255,0.9);
  transform: rotate(-45deg) translate(2px, 2px);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.logo-text strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
}
.logo-text small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.nav-desktop {
  display: flex;
  gap: 1.75rem;
}
.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-desktop a:hover { color: var(--accent-teal); }

.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}
.nav-mobile a {
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile.is-open {
  display: flex;
}

/* ========== SECTION COMMON ========== */
.section {
  padding-block: var(--section-py);
}

.section-header {
  margin-bottom: 3rem;
  max-width: 640px;
}
.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-teal);
  background: var(--accent-teal-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.text-accent {
  color: var(--accent-teal);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding-top: calc(72px + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(13, 92, 92, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(184, 146, 42, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-cta .btn svg {
  transform: scaleX(-1);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.trust-badges li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.badge-icon {
  color: var(--accent-gold);
  font-size: 0.7rem;
}

/* Platform Mockup */
.hero-visual {
  position: relative;
}

.platform-mockup {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.mockup-dot:first-child { background: #E8A598; }
.mockup-dot:nth-child(2) { background: #E8C598; }
.mockup-dot:nth-child(3) { background: #98C9A8; }
.mockup-title {
  margin-right: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mockup-body {
  display: flex;
  min-height: 280px;
}

.mockup-sidebar {
  width: 110px;
  padding: 1rem 0.5rem;
  background: var(--bg-primary);
  border-left: 1px solid var(--border);
  flex-shrink: 0;
}
.mockup-nav-item {
  font-size: 0.7rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.mockup-nav-item.active {
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
  font-weight: 600;
}

.mockup-main {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mockup-course-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  border: 1px solid var(--border);
}
.mockup-course-card.featured {
  background: linear-gradient(135deg, var(--accent-teal-soft) 0%, var(--accent-gold-soft) 100%);
  border-color: rgba(13, 92, 92, 0.15);
}
.mockup-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-teal);
  display: block;
  margin-bottom: 0.25rem;
}
.mockup-course-card strong {
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.5rem;
}
.mockup-progress {
  height: 4px;
  background: rgba(0,0,0,0.08);
  border-radius: 4px;
  margin-bottom: 0.35rem;
  overflow: hidden;
}
.mockup-progress span {
  display: block;
  height: 100%;
  background: var(--accent-teal);
  border-radius: 4px;
}
.mockup-course-card small {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.mockup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.mockup-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem;
}
.mockup-mini-card span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
}
.mockup-mini-card em {
  font-style: normal;
  font-size: 0.6rem;
  color: var(--text-muted);
}

.mockup-activity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: var(--bg-card);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.activity-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  flex-shrink: 0;
}
.mockup-activity p {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.hero-float {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.hero-float--1 {
  top: -10px;
  left: -20px;
  color: var(--accent-green);
}
.hero-float--2 {
  bottom: 20px;
  right: -30px;
  color: var(--accent-teal);
}

/* ========== WHY ========== */
.section-why {
  background: var(--bg-card);
  border-block: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.why-card {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.why-card--highlight {
  background: linear-gradient(135deg, var(--accent-teal-soft) 0%, transparent 100%);
  border-color: rgba(13, 92, 92, 0.2);
  grid-column: 1 / -1;
}

.why-icon {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}
.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.why-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.contrast-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.contrast-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.contrast-col ul li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  padding-right: 1rem;
  position: relative;
}
.contrast-bad ul li::before {
  content: '—';
  position: absolute;
  right: 0;
  color: #C45C5C;
}
.contrast-good ul li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--accent-green);
  font-weight: 700;
}

.contrast-divider {
  width: 1px;
  background: var(--border-strong);
}

/* ========== PROGRAMS ========== */
.programs-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}
.program-card:hover {
  box-shadow: var(--shadow-md);
}

.program-card--hero {
  display: block;
  position: relative;
}
.program-card--hero .program-badge {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  margin-bottom: 0;
  z-index: 2;
}
.program-card--secondary {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.program-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-teal);
  background: var(--accent-teal-soft);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  width: fit-content;
}
.program-badge--gold {
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
}

.program-content {
  padding: 2rem;
}
.program-card--hero .program-content {
  padding: 3.3rem 2rem 2rem;
}

.program-content h3,
.program-content h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.program-content h3 { font-size: 1.35rem; }
.program-content h4 { font-size: 1.05rem; }

.program-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.program-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.program-stats li {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.program-stats strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-teal);
  line-height: 1.2;
}

.program-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.program-topics li {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  background: var(--bg-secondary);
  border-radius: 100px;
  color: var(--text-secondary);
}

.program-visual {
  width: 180px;
  background: linear-gradient(180deg, var(--accent-teal-soft) 0%, var(--bg-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-right: 1px solid var(--border);
}

.chart-placeholder {
  text-align: center;
  color: var(--accent-teal);
}
.chart-placeholder svg {
  width: 100%;
  height: 60px;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}
.chart-placeholder span {
  font-size: 0.75rem;
  font-weight: 600;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.program-card--compact {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 220px;
}
.program-card--compact p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
}
.program-card--cta {
  background: var(--bg-secondary);
  align-items: flex-start;
}

.program-card .btn,
.program-card .link-arrow {
  margin-top: auto;
}

.program-card--secondary .program-content,
.program-card--hero .program-content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ========== METHOD ========== */
.section-method {
  background: var(--bg-dark);
  color: var(--text-inverse);
}
.section-method .section-label {
  background: rgba(255,255,255,0.08);
  color: var(--accent-gold);
}
.section-method .section-lead {
  color: rgba(245, 243, 239, 0.7);
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  counter-reset: method;
}

.method-step {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-card-dark);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s var(--ease);
}
.method-step:hover {
  border-color: rgba(184, 146, 42, 0.3);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  opacity: 0.9;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.step-body h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.step-body p {
  font-size: 0.9rem;
  color: rgba(245, 243, 239, 0.65);
  line-height: 1.7;
}

/* ========== COMMUNITY ========== */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.community-features {
  margin: 2rem 0;
}
.community-features li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.community-features li:last-child { border-bottom: none; }
.community-features strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.community-features span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.groups-stack {
  position: relative;
  min-height: 320px;
}

.group-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: absolute;
  width: 90%;
  transition: transform 0.3s var(--ease);
}
.group-card:hover { transform: translateY(-4px); }

.group-card--1 {
  top: 0;
  right: 0;
  z-index: 3;
}
.group-card--2 {
  top: 100px;
  right: 5%;
  z-index: 2;
  opacity: 0.95;
}
.group-card--3 {
  top: 200px;
  right: 10%;
  z-index: 1;
  opacity: 0.9;
}

.group-icon {
  color: var(--accent-teal);
  font-size: 1.25rem;
  margin-top: 0.15rem;
}
.group-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.group-card small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== TRUST ========== */
.section-trust {
  background: var(--bg-secondary);
  border-block: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.trust-card--instructor {
  grid-row: span 2;
}

.instructor-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-teal-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.instructor-avatar span {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
}

.trust-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.trust-role {
  font-size: 0.85rem;
  color: var(--accent-teal);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.trust-card > p:last-child {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.trust-metric {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.trust-metric:last-child { border-bottom: none; }
.trust-metric strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-teal);
  line-height: 1.2;
}
.trust-metric span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-list li,
.trust-contact li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.trust-list li {
  padding-right: 1rem;
  position: relative;
}
.trust-list li::before {
  content: '◈';
  position: absolute;
  right: 0;
  color: var(--accent-gold);
  font-size: 0.65rem;
  top: 0.65rem;
}

.trust-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-teal);
  font-weight: 500;
  transition: opacity 0.2s;
}
.trust-contact a:hover { opacity: 0.75; }

/* ========== FINAL CTA ========== */
.section-cta {
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.cta-box {
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--accent-teal) 0%, #0A4545 50%, var(--bg-dark) 100%);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(184, 146, 42, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.cta-box h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1rem;
  position: relative;
}
.cta-box > p {
  font-size: 1.05rem;
  color: rgba(245, 243, 239, 0.85);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.8;
  position: relative;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.cta-note {
  font-size: 0.85rem;
  color: rgba(245, 243, 239, 0.55);
  position: relative;
}

.cta-login {
  font-size: 0.9rem;
  margin-top: 1rem;
  position: relative;
}
.cta-login a {
  color: rgba(245, 243, 239, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-login a:hover {
  color: var(--text-inverse);
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: -1.5rem;
  margin-bottom: 0;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(245, 243, 239, 0.7);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand strong {
  font-family: var(--font-heading);
  color: var(--text-inverse);
  display: block;
  margin-bottom: 0.25rem;
}
.footer-brand p {
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-inverse); }

.footer-copy {
  font-size: 0.8rem;
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 0.5rem;
}

/* ========== MOBILE STICKY CTA ========== */
.mobile-sticky-cta {
  display: none;
}

/* ========== ANIMATIONS (scroll reveal) ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-grid,
  .community-grid,
  .programs-featured {
    grid-template-columns: 1fr;
  }

  .program-card--hero {
    grid-template-columns: 1fr;
  }

  .program-visual {
    width: 100%;
    border-right: none;
    border-top: 1px solid var(--border);
    min-height: 120px;
  }

  .hero-visual {
    order: -1;
    max-width: 520px;
    margin-inline: auto;
  }

  .hero-float--1 { left: 0; }
  .hero-float--2 { right: 0; }

  .contrast-banner {
    grid-template-columns: 1fr;
  }
  .contrast-divider {
    width: 100%;
    height: 1px;
  }

  .trust-card--instructor {
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .nav-desktop,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .logo {
    max-width: 170px;
  }
  .logo-image,
  .site-header .logo img,
  .site-header .custom-logo {
    max-width: 150px !important;
    max-height: 42px !important;
  }

  .why-card--highlight {
    grid-column: auto;
  }

  .groups-stack {
    min-height: 280px;
    margin-top: 1rem;
  }
  .group-card {
    width: 95%;
  }
  .group-card--2 { top: 90px; }
  .group-card--3 { top: 180px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .mobile-sticky-cta {
    display: block;
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 60;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(250, 248, 245, 0.97);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(8px);
  }
  .mobile-sticky-cta .btn {
    width: 100%;
    min-height: 46px;
    font-size: 0.95rem;
  }
  .site-footer {
    padding-bottom: 6.2rem;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn {
    width: 100%;
  }

  .mockup-sidebar {
    display: none;
  }

  .program-stats {
    gap: 1rem;
  }
}
