/* =========================================
   الأميرة نور مخملجي - Family Counselor Website
   Design: iOS 26 inspired glassmorphism
   Palette: dusty rose, warm beige, soft gold, muted mauve, creamy white
   ========================================= */

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

:root {
  /* Color palette - warm, feminine, elegant */
  --cream: #FBF6F0;
  --cream-soft: #F7EFE6;
  --beige: #EFE2D2;
  --rose: #D8A7A2;
  --rose-deep: #C08A85;
  --rose-soft: #F1D4CF;
  --mauve: #B89BAE;
  --mauve-deep: #9A7B92;
  --gold: #D4B373;
  --gold-soft: #E8D2A6;
  --ink: #3D2E2A;
  --ink-soft: #5A463E;
  --ink-light: #7D6960;
  --white-tint: rgba(255, 252, 248, 0.7);

  /* Glass */
  --glass-bg: rgba(255, 251, 245, 0.55);
  --glass-bg-strong: rgba(255, 251, 245, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px rgba(155, 110, 100, 0.12);
  --glass-shadow-hover: 0 16px 48px rgba(155, 110, 100, 0.18);

  /* Typography */
  --font-display: 'Reem Kufi', 'Tajawal', system-ui, sans-serif;
  --font-body: 'Tajawal', system-ui, sans-serif;

  /* Spacing & shape */
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-xl: 44px;

  /* Motion */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(216, 167, 162, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(184, 155, 174, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 50%, rgba(212, 179, 115, 0.10) 0%, transparent 50%),
    var(--cream);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--rose-soft); color: var(--ink); }

/* ---------- Ambient Background ---------- */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s infinite ease-in-out;
}
.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, var(--rose) 0%, transparent 70%); top: -150px; right: -100px; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, var(--mauve) 0%, transparent 70%); bottom: 10%; left: -100px; animation-delay: -7s; }
.orb-3 { width: 350px; height: 350px; background: radial-gradient(circle, var(--gold) 0%, transparent 70%); top: 50%; left: 40%; animation-delay: -14s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: multiply;
}

/* ---------- Glass Utility ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.7);
}

.glass-soft {
  background: rgba(255, 251, 245, 0.4);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease-soft);
}

.navbar.scrolled {
  background: rgba(255, 251, 245, 0.85);
  box-shadow: 0 12px 40px rgba(155, 110, 100, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Pill-style brand container — replaces the avatar mark */
.brand-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(216, 167, 162, 0.18) 0%, rgba(184, 155, 174, 0.14) 100%);
  border: 1px solid rgba(216, 167, 162, 0.35);
  box-shadow: 0 4px 14px rgba(192, 138, 133, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s var(--ease-soft);
}

.brand-pill .brand-text {
  min-width: 0;
}

/* Slimmer in the navbar so it fits the bar height */
.navbar .brand-pill {
  padding: 9px 22px !important;
}

/* Larger and more prominent in the footer */
.footer .brand-pill {
  padding: 22px 56px !important;
}
.footer .brand-pill .brand-name { font-size: 19px; }
.footer .brand-pill .brand-sub { font-size: 13px; }

.brand-pill:hover {
  background: linear-gradient(135deg, rgba(216, 167, 162, 0.28) 0%, rgba(184, 155, 174, 0.22) 100%);
  border-color: rgba(216, 167, 162, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192, 138, 133, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rose) 0%, var(--mauve) 100%);
  color: white;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(184, 155, 174, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 4px;
}

.brand-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 11px;
  color: var(--ink-light);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.25s var(--ease-soft);
  position: relative;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(216, 167, 162, 0.15);
}

.btn-support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  color: white;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(192, 138, 133, 0.35);
  transition: all 0.25s var(--ease-soft);
}

.btn-support:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(192, 138, 133, 0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(216, 167, 162, 0.15);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s var(--ease-soft);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 22px 20px;
  gap: 4px;
  border-top: 1px solid rgba(216, 167, 162, 0.2);
}

.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { padding: 12px 16px; text-align: right; border-radius: 14px; }
.nav-mobile .btn-support { margin-top: 10px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 140px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  min-height: 100vh;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  animation: fadeUp 0.8s var(--ease-soft);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5DBD7C;
  box-shadow: 0 0 0 3px rgba(93, 189, 124, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(93, 189, 124, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(93, 189, 124, 0); }
}

.hero-title {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
  padding-top: 0.15em;
}

.hero-title .line {
  display: block;
  padding: 0.05em 0;
  animation: fadeUp 0.8s var(--ease-soft) backwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) { animation-delay: 0.25s; }
.hero-title .line:nth-child(3) { animation-delay: 0.4s; }

.hero-title .accent {
  background: linear-gradient(135deg, var(--rose-deep) 0%, var(--mauve-deep) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 36px;
  animation: fadeUp 0.8s var(--ease-soft) 0.55s backwards;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s var(--ease-soft) 0.7s backwards;
}

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

/* Hero visual */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.halo {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--rose) 0%, var(--gold) 25%, var(--mauve) 50%, var(--rose) 75%, var(--gold) 100%);
  filter: blur(60px);
  opacity: 0.55;
  animation: spin 30s linear infinite;
}

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

.visual-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  animation: floatCard 6s ease-in-out infinite;
}

.visual-card .emoji { font-size: 28px; }

.card-1 { top: 10%; right: 5%; animation-delay: 0s; }
.card-2 { top: 45%; left: 0; animation-delay: -2s; }
.card-3 { bottom: 8%; right: 15%; animation-delay: -4s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s var(--ease-soft);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose-deep) 0%, var(--mauve-deep) 100%);
  color: white;
  box-shadow: 0 10px 28px rgba(154, 123, 146, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(154, 123, 146, 0.55);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  border: 1px solid rgba(216, 167, 162, 0.3);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--rose);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-section-support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rose-deep);
  background: rgba(216, 167, 162, 0.12);
  border: 1px solid rgba(216, 167, 162, 0.3);
  transition: all 0.25s var(--ease-soft);
  margin-top: 16px;
}

.btn-section-support:hover {
  background: var(--rose);
  color: white;
  border-color: var(--rose);
  transform: translateY(-1px);
}

/* ---------- Section Navigator (3 cards) ---------- */
.navigator {
  padding: 60px 0 40px;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rose-deep);
  background: var(--rose-soft);
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: var(--font-body);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.nav-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.4s var(--ease-soft);
  overflow: hidden;
}

.nav-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(216, 167, 162, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.nav-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-hover);
}

.nav-card:hover::before { opacity: 1; }

.nav-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: white;
  margin-bottom: 4px;
}

.icon-rose { background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%); }
.icon-gold { background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 100%); }
.icon-mauve { background: linear-gradient(135deg, var(--mauve) 0%, var(--mauve-deep) 100%); }

.nav-card h3 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}

.nav-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
  flex: 1;
}

.nav-card-arrow {
  font-size: 24px;
  color: var(--rose-deep);
  transition: transform 0.3s var(--ease-soft);
}

.nav-card:hover .nav-card-arrow {
  transform: translateX(-8px);
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(247, 239, 230, 0.5) 50%, transparent 100%);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* ---------- Course Card (YouTube thumbnail style) ---------- */
.course-card {
  background: var(--glass-bg-strong);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease-soft);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-hover);
}

.course-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose) 0%, var(--mauve) 100%);
}

.course-thumb-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.course-thumb-emoji {
  font-size: 64px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
  transition: transform 0.5s var(--ease-bounce);
}

.course-card:hover .course-thumb-emoji {
  transform: scale(1.15) rotate(-5deg);
}

.course-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25) 0%, transparent 60%);
  pointer-events: none;
}

.course-format-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.course-live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 60, 60, 0.95);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.course-live-badge .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.course-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.course-title {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.course-desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-session {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(216, 167, 162, 0.15), rgba(184, 155, 174, 0.15));
  border: 1px solid rgba(216, 167, 162, 0.25);
  font-size: 13px;
  font-weight: 500;
  color: var(--rose-deep);
  align-self: flex-start;
}

.course-prices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 248, 240, 0.6);
  border: 1px solid rgba(216, 167, 162, 0.15);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.price-label {
  color: var(--ink-soft);
}

.price-value {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}

.course-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.course-actions .btn {
  padding: 12px 16px;
  font-size: 14px;
}

/* ---------- Owned course state (already enrolled) ---------- */
.course-owned-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(99, 170, 130, 0.12);
  border: 1px solid rgba(99, 170, 130, 0.3);
  color: #3f7d5a;
  font-weight: 700;
  font-size: 14px;
}

.course-owned-badge .owned-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3f7d5a;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}

.btn-watch {
  background: linear-gradient(135deg, #4f9d72 0%, #3f7d5a 100%);
  color: #fff;
}

.btn-watch:hover {
  filter: brightness(1.05);
}

/* ---------- Consultations (redesigned) ---------- */
.consult-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.consult-feature-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: all 0.4s var(--ease-soft);
}

.consult-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-hover);
}

.consult-feature-icon {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(192, 138, 133, 0.2));
}

.consult-feature-card h5 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
}

.consult-feature-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.consult-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-consult-main {
  padding: 18px 48px;
  font-size: 17px;
  font-weight: 700;
  gap: 12px;
  box-shadow: 0 14px 36px rgba(154, 123, 146, 0.45);
}

.btn-consult-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(154, 123, 146, 0.55);
}

.consult-cta-note {
  font-size: 13px;
  color: var(--ink-light);
}

@media (max-width: 968px) {
  .consult-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .consult-features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .consult-feature-card {
    padding: 22px 16px;
  }
  .consult-feature-icon { font-size: 34px; }
  .consult-feature-card h5 { font-size: 15px; }
  .consult-feature-card p { font-size: 12.5px; }
  .btn-consult-main { padding: 16px 32px; font-size: 15px; }
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.testimonial-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.4s var(--ease-soft);
}

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

/* Author block at the top */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(216, 167, 162, 0.18);
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose) 0%, var(--mauve) 100%);
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(184, 155, 174, 0.35);
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.testimonial-name {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.3;
}

.testimonial-role {
  font-size: 12px;
  color: var(--ink-light);
  line-height: 1.3;
}

.testimonial-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
  margin-top: 4px;
}

.testimonial-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  flex: 1;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Mobile: keep 2 columns side-by-side as long as space allows */
@media (max-width: 720px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .testimonial-card { padding: 16px; gap: 12px; }
  .testimonial-author { gap: 10px; padding-bottom: 12px; }
  .testimonial-avatar { width: 36px; height: 36px; font-size: 15px; }
  .testimonial-name { font-size: 13px; }
  .testimonial-role { font-size: 11px; }
  .testimonial-stars { font-size: 12px; }
  .testimonial-text { font-size: 13px; line-height: 1.75; }
}

@media (max-width: 420px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  padding: 60px 0 30px;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding: 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col a, .footer-col .footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s;
  word-break: break-word;
  flex-wrap: wrap;
}

.footer-col a svg, .footer-col .footer-link svg {
  flex-shrink: 0;
}

.footer-col a:hover, .footer-col .footer-link:hover {
  color: var(--rose-deep);
}

.footer-about {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 320px;
}

.copyright {
  text-align: center;
  font-size: 13px;
  color: var(--ink-light);
}

/* ---------- Floating WA ---------- */
.float-wa {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: all 0.3s var(--ease-soft);
  animation: bobble 3s ease-in-out infinite;
}

.float-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

@keyframes bobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
  animation: modalIn 0.3s var(--ease-soft);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(60, 40, 35, 0.5);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgba(255, 251, 245, 0.95) !important;
  animation: cardIn 0.4s var(--ease-bounce);
  -webkit-overflow-scrolling: touch;
}

.modal-card-wide {
  max-width: 640px;
  text-align: right;
  padding: 28px;
  overflow-x: hidden;
}

@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cardIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
}

.modal-card h3 {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.modal-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.modal-summary {
  background: var(--rose-soft);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--ink);
  text-align: right;
  display: none;
}

#modalSummary {
  display: block;
  background: rgba(255, 248, 240, 0.7);
  border: 1px solid rgba(216, 167, 162, 0.2);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(216, 167, 162, 0.3);
}

.summary-row:last-child {
  border-bottom: none;
}

.price-highlight {
  color: var(--rose-deep);
  font-weight: 700;
}

.modal-summary.show { display: block; }

.modal-summary div {
  margin: 4px 0;
}

.modal-summary strong {
  color: var(--rose-deep);
  font-weight: 700;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal-actions .btn {
  flex: 1;
}

.modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 251, 245, 0.95);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: all 0.2s;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(60, 40, 35, 0.18);
  border: 1px solid rgba(216, 167, 162, 0.3);
}

.modal-close:hover {
  background: var(--rose);
  color: white;
  border-color: var(--rose);
}

/* Course details modal content */
.detail-thumb {
  aspect-ratio: 16 / 8;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--rose) 0%, var(--mauve) 100%);
  display: grid;
  place-items: center;
  font-size: 80px;
  margin: 12px 0 24px;
  position: relative;
  overflow: hidden;
}

.detail-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25) 0%, transparent 60%);
}

.detail-title {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.detail-meta-tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-size: 13px;
  font-weight: 500;
}

.detail-desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 22px;
}

.detail-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-price {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 248, 240, 0.7);
  border: 1px solid rgba(216, 167, 162, 0.2);
  text-align: center;
}

.detail-price .price-label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.detail-price .price-value {
  font-size: 22px;
  color: var(--rose-deep);
}

/* ---------- Protect Toast ---------- */
.protect-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: rgba(60, 40, 35, 0.92);
  color: white;
  padding: 14px 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 300;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  transition: transform 0.4s var(--ease-bounce);
  pointer-events: none;
}

.protect-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ---------- Empty state ---------- */
.empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: var(--ink-light);
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  border: 2px dashed rgba(216, 167, 162, 0.3);
}

.empty-state .emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

/* ---------- Content Protection (CSS) ---------- */
.protected-content,
audio, video, img.protected {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

/* Print-friendly styles (was: hide everything, which broke legitimate use) */
@media print {
  .navbar, .nav-mobile, .float-wa, .protect-toast,
  .modal, .modal-backdrop,
  .ambient-bg, .orb, .grain,
  .btn, .btn-support, .btn-section-support,
  .nav-toggle {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }
  .glass, .glass-soft {
    background: white !important;
    border: 1px solid #ccc !important;
  }
}

/* Respect users who prefer reduced motion (accessibility) */
@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;
  }
  .orb { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 120px;
    text-align: center;
    min-height: auto;
  }
  .hero-sub { margin: 0 auto 36px; }
  .hero-cta { justify-content: center; }
  /* Visual cards now appear AFTER the hero text on mobile */
  .hero-visual { height: 360px; order: 2; transform: scale(0.85); margin-top: 20px; }
  .hero-content { order: 1; }
  .nav-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  /* Reposition floating cards so they don't overlap on mobile */
  .card-1 { top: 5%; right: 8%; }
  .card-2 { top: 42%; left: 5%; right: auto; }
  .card-3 { bottom: 5%; right: 20%; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .navbar { top: 12px; left: 12px; right: 12px; }
  .nav-inner { padding: 10px 16px; }
  .brand-name { font-size: 14px; }
  .brand-sub { font-size: 10px; }

  .hero { padding: 110px 20px 60px; }
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }

  .cards-grid { grid-template-columns: 1fr; gap: 20px; }
  .course-actions { grid-template-columns: 1fr; }

  .modal { padding: 12px; }
  .modal-card { padding: 28px 22px; max-height: 90vh; }
  .modal-card-wide { padding: 22px 18px; }
  .detail-thumb { font-size: 60px; margin: 8px 0 20px; }
  .detail-title { font-size: 22px; }
  .modal-close { top: 10px; left: 10px; width: 36px; height: 36px; }

  .float-wa { width: 52px; height: 52px; bottom: 16px; left: 16px; }

  .detail-prices { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 36px; }
  .hero-visual { height: 280px; transform: scale(0.7); }
  .visual-card { padding: 14px 18px; font-size: 14px; }
  .visual-card .emoji { font-size: 22px; }
}
