/* 
─────────────────────────────────────────────────────────────────────────────
1. |PRIMARY BUTTON
─────────────────────────────────────────────────────────────────────────────
*/

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-light) 100%);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 34px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  transition: filter var(--t-base) var(--ease);
}

.btn-primary:hover {
  filter: brightness(1.25);
  color: #fff;
}

.btn-primary:active {
  filter: brightness(0.9);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 16px 42px;
}

/* 
─────────────────────────────────────────────────────────────────────────────
2. |SECONDRY BUTTON
─────────────────────────────────────────────────────────────────────────────
*/

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-text-2);
  padding: 10px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(26, 12, 11, 0.15);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn-secondary:hover {
  color: var(--c-brand);
  border-color: var(--c-brand);
  background: var(--c-brand-tint);
}

/* 
─────────────────────────────────────────────────────────────────────────────
3. |SECTION HEADING
─────────────────────────────────────────────────────────────────────────────
*/

.section-heading {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* Eyebrow / Label */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-brand);
  background: var(--c-brand-tint);
  border: 1px solid rgba(130, 53, 48, 0.13);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-brand);
  flex-shrink: 0;
  animation: sectionDotBeat 2.6s ease-in-out infinite;
}

@keyframes sectionDotBeat {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.5);
    opacity: 0.35;
  }
}

/* Main Title */
.section-title {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-text);
  margin: 0 0 12px;
}

.section-title__accent {
  color: var(--c-brand);
  position: relative;
  display: inline-block;
}

/* Subtitle / Description */
.section-subtitle {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--c-text-2);
  max-width: 560px;
  margin: 0 auto;
}

/* ====== RTL ====== */
[dir='rtl'] .section-heading {
  text-align: center;
}

[dir='rtl'] .section-title {
  letter-spacing: 0;
  line-height: 1.3;
}

[dir='rtl'] .section-subtitle {
  line-height: 1.85;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .section-heading {
    margin-bottom: clamp(24px, 4vw, 40px);
  }

  .section-eyebrow {
    font-size: 0.75rem;
    padding: 5px 14px;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .section-subtitle {
    font-size: 0.9375rem;
    max-width: 90%;
  }
}

/* 
─────────────────────────────────────────────────────────────────────────────
4. |CTA PAGE SECTION
─────────────────────────────────────────────────────────────────────────────
*/

.cta-section {
  background: var(--c-bg-alt);
  padding: clamp(72px, 11vh, 120px) clamp(24px, 6vw, 80px);
}

.cta-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.cta-section.in-view .cta-inner {
  opacity: 1;
  transform: translateY(0);
}

/* ====== Headline ====== */
.cta-title {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-text);
  margin: 0 0 12px;
}

.cta-title__accent {
  color: var(--c-brand);
}

/* ====== Sub ====== */
.cta-sub {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  color: var(--c-text-2);
  line-height: 1.72;
  margin-bottom: 8px;
}

.cta-sub:last-of-type {
  margin-bottom: 36px;
}

/* ====== RTL ====== */
[dir='rtl'] .cta-title {
  letter-spacing: 0;
  line-height: 1.2;
}
[dir='rtl'] .cta-sub {
  line-height: 1.9;
}

/* ====== Mobile ====== */
@media (max-width: 480px) {
  .cta-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  .cta-sub:last-of-type {
    margin-bottom: 28px;
  }
  .cta-inner .btn-primary {
    width: 100%;
    max-width: 300px;
  }
}
