/* ========================================
   COMPONENTS — Buttons, Cards, Eyebrow, Video, Stats
   ======================================== */

/* ---------- EYEBROW ---------- */
.eyebrow {
  font-family: var(--sans-en);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 600;
  color: var(--turq);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow .pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--turq);
  flex-shrink: 0;
}
.eyebrow .pulse-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--turq);
  animation: ping-ring 2.4s ease-out infinite;
}
.section-dark .eyebrow {
  color: var(--turq-light);
}
.section-dark .eyebrow .pulse-dot {
  background: var(--turq-light);
}
.section-dark .eyebrow .pulse-dot::after {
  background: var(--turq-light);
}

/* ---------- BUTTONS ---------- */
.btn {
  font-family: var(--serif-ar);
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 2rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--turq);
  color: var(--turq-deep);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  transition: all .25s var(--ease-out);
  will-change: transform;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn:active {
  transform: scale(.97);
}
.btn-filled {
  background: var(--turq);
  color: var(--cream);
  border-color: var(--turq);
}
.btn-filled:hover {
  background: var(--turq-deep);
  border-color: var(--turq-deep);
}

/* Dark section buttons */
.section-dark .btn {
  color: var(--cream);
  border-color: rgba(250,246,236,.3);
}
.section-dark .btn:hover {
  border-color: rgba(250,246,236,.6);
}
.section-dark .btn-filled {
  background: var(--turq-light);
  color: var(--turq-deep);
  border-color: var(--turq-light);
}

/* Language switch toggle */
.lang-switch {
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0;
  direction: ltr;
  padding: 4px;
  border-radius: var(--radius-full);
  background: rgba(23, 34, 31, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(250, 246, 236, 0.15);
  cursor: pointer;
  user-select: none;
  transition: background 0.3s var(--ease-out);
}
.lang-switch:hover {
  background: rgba(23, 34, 31, 0.7);
}
.lang-option {
  position: relative;
  z-index: 1;
  padding: 0.4rem 0.9rem;
  font-family: var(--sans-en);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(250, 246, 236, 0.5);
  transition: color 0.3s var(--ease-out);
  line-height: 1;
}
.lang-option[data-lang="ar"] {
  font-family: var(--serif-ar);
  font-weight: 700;
}
.lang-switch.is-en .lang-option[data-lang="en"] {
  color: var(--cream);
}
.lang-switch:not(.is-en) .lang-option[data-lang="ar"] {
  color: var(--cream);
}
.lang-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: var(--radius-full);
  background: var(--turq);
  transition: transform 0.3s var(--ease-spring);
  box-shadow: 0 2px 8px rgba(27, 125, 150, 0.4);
}
.lang-switch.is-en .lang-slider {
  transform: translateX(calc(100% + 0px));
}
.lang-switch:focus-visible {
  outline: 2px solid var(--turq-light);
  outline-offset: 2px;
}

/* ---------- CARDS (glass on dark) ---------- */
.card-glass {
  background: rgba(250,246,236,.06);
  border: 1px solid rgba(250,246,236,.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.card-glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
}

/* Card (light bg) */
.card-light {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s ease;
}
.card-light:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(27,125,150,.4);
}

/* ---------- VIDEO PLAYER ---------- */
.video-wrapper {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}
.video-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(18,60,75,.5);
  border: 1px solid rgba(250,246,236,.1);
  box-shadow: 0 16px 60px rgba(0,0,0,.35);
}
.video-container video,
.video-container .video-poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.video-poster {
  background: linear-gradient(135deg, var(--turq) 0%, var(--turq-deep) 50%, rgba(18,60,75,.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(92,175,198,.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(250,246,236,.06) 0%, transparent 40%);
  pointer-events: none;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 40px -5px rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  transition: transform .25s var(--ease-spring), box-shadow .25s ease;
}
.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 14px 50px -5px rgba(0,0,0,.5);
}
.play-btn:active {
  transform: translate(-50%, -50%) scale(.97);
}
.play-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--turq-deep);
  margin-left: 3px;
}
.play-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  animation: ping-ring 2.5s ease-out infinite;
  pointer-events: none;
}
.play-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.7);
}

/* ---------- STAT CARDS ---------- */
.stat-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--turq-pale);
  border: 1px solid rgba(27,125,150,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: background .3s ease, color .3s ease;
  color: var(--turq);
}
.stat-card:hover .stat-icon {
  background: var(--turq);
  color: var(--cream);
}
.stat-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.stat-label {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: .4rem;
}
.stat-desc {
  font-size: .78rem;
  color: var(--ink-soft);
  margin-top: .2rem;
}
.stat-partner {
  font-size: .72rem;
  color: var(--ink-soft);
  margin-top: .5rem;
  font-style: italic;
  opacity: .8;
}

/* ---------- PILLAR CARDS ---------- */
.pillar {
  background: var(--cream-deep);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s ease;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27,125,150,.4);
}
.pillar .pillar-tag {
  font-family: var(--sans-en);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--turq);
  font-weight: 700;
}
.pillar h3 {
  font-size: 1.4rem;
  margin: .7rem 0 .8rem;
  color: var(--ink);
}
.pillar p {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.8;
}

/* ---------- PULSE LINE ---------- */
.pulse-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 .8rem;
}
.pulse-label {
  font-family: var(--sans-en);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--turq-deep);
  white-space: nowrap;
  font-weight: 700;
}
.pulse-line-wrap {
  flex: 1;
  height: 24px;
  position: relative;
}
.pulse-line-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.pulse-path {
  fill: none;
  stroke: var(--turq);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}
.in-view .pulse-path {
  stroke-dashoffset: 0;
}
.pulse-dot-svg {
  fill: var(--turq);
}

/* ---------- ROLE CARDS ---------- */
.role-card {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-top: 3px solid var(--turq);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.role-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.role-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-sm);
  background: var(--turq-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}
.role-icon svg {
  width: 24px;
  height: 24px;
}
.role-card h4 {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: .35rem;
  line-height: 1.5;
}
.role-card p {
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ---------- TRUST BADGES ---------- */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--sans-en);
  font-size: .75rem;
  font-weight: 500;
  color: rgba(250,246,236,.7);
}
.trust-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--turq-light);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- TEXTURE CARD ---------- */
.texture {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--turq) 0%, var(--turq-deep) 60%);
  border: 1px solid rgba(250,246,236,.15);
}
.texture svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
}

/* ---------- CONTACT FORM ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}
.contact-form input[type="text"],
.contact-form input[type="email"] {
  width: 100%;
  padding: 1rem 1.3rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(250,246,236,.18);
  background: rgba(250,246,236,.06);
  color: var(--cream);
  font-family: var(--serif-ar);
  font-size: 1rem;
  line-height: 1.5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .3s ease, box-shadow .3s ease;
  outline: none;
}
.contact-form input::placeholder {
  color: rgba(250,246,236,.35);
}
.contact-form input:focus {
  border-color: var(--turq-light);
  box-shadow: 0 0 0 3px rgba(92,175,198,.15);
}
.contact-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 140px;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(250,246,236,.18);
  background: rgba(250,246,236,.06);
  color: var(--cream);
  font-family: var(--serif-ar);
  font-size: 1rem;
  line-height: 1.7;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .3s ease, box-shadow .3s ease;
  outline: none;
}
.contact-form textarea::placeholder {
  color: rgba(250,246,236,.35);
}
.contact-form textarea:focus {
  border-color: var(--turq-light);
  box-shadow: 0 0 0 3px rgba(92,175,198,.15);
}
.contact-form .btn {
  min-width: 200px;
}
.contact-form .btn:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
  box-shadow: none;
}
.form-feedback {
  font-family: var(--sans-en);
  font-size: .88rem;
  font-weight: 500;
  text-align: center;
  min-height: 1.4em;
}
.form-feedback--success {
  color: #6ecf8e;
}
.form-feedback--error {
  color: #e8746e;
}

/* ---------- GOAL BLIP ---------- */
.goal-blip {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--turq);
  margin-top: .5rem;
  position: relative;
  flex-shrink: 0;
}
.goal-blip::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--turq);
  opacity: .35;
}

/* ---------- WHO CARD ---------- */
.who-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.who-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.who-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--turq-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.who-icon svg {
  width: 22px;
  height: 22px;
}
.who-card h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
  line-height: 1.5;
}
.who-card p {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.75;
}
