/* ========================================
   SHARED COMPONENTS
   Reusable sections across ZenHR pages
   Requires: header.css (for variables)
   ======================================== */


/* ========================================
   CTA BUTTON COMPONENTS
   Unified button system for all pages
   ======================================== */

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 32px;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.cta-btn-text {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.cta-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.cta-btn:hover svg {
  transform: translateX(4px);
}

/* Primary Button - Teal filled */
.cta-btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 1px solid transparent;
}

.cta-btn--primary .cta-btn-text {
  color: var(--color-white);
}

.cta-btn--primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-white);
}

.cta-btn--primary:hover .cta-btn-text {
  color: var(--color-white);
}

/* Secondary Button - Outline */
.cta-btn--secondary {
  background: rgba(15, 23, 42, 0.05);
  color: var(--color-dark);
  border: 1px solid rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta-btn--secondary .cta-btn-text {
  color: var(--color-dark);
}

.cta-btn--secondary:hover {
  background: rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.25);
  color: var(--color-dark);
}

.cta-btn--secondary:hover .cta-btn-text {
  color: var(--color-dark);
}

/* Secondary Dark - For light backgrounds */
.cta-btn--secondary-dark {
  background: rgba(15, 23, 42, 0.05);
  color: var(--color-dark);
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.cta-btn--secondary-dark:hover {
  background: rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.3);
}

/* Focus states */
.cta-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* RTL: Flip arrow icons */
[dir="rtl"] .cta-btn svg {
  transform: scaleX(-1);
}

[dir="rtl"] .cta-btn:hover svg {
  transform: scaleX(-1) translateX(4px);
}

/* Desktop adjustments */
@media (min-width: 992px) {
  .cta-btn {
    padding: 18px 36px;
  }

  .cta-btn-text {
    font-size: 17px;
  }
}


/* ========================================
   TRUST RATING BADGES SECTION
   ======================================== */

.trust-rating-section {
  position: relative;
  padding: 64px 0;
  overflow: hidden;
}

.trust-rating-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.trust-rating-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-rating-bg-img--mobile {
  display: block;
}

.trust-rating-bg-img--desktop {
  display: none;
}

.trust-rating-inner {
  position: relative;
  z-index: 1;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.trust-rating-header {
  text-align: center;
  margin-bottom: 40px;
}

.trust-rating-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.2;
  margin: 0 0 16px 0;
}

.trust-rating-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary, #64748B);
  line-height: 1.5;
  margin: 0;
}

.trust-rating-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.trust-rating-card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.trust-rating-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.trust-rating-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.trust-rating-stars {
  display: flex;
  gap: 4px;
  height: 18px;
}

.trust-star {
  width: 18px;
  height: 18px;
  color: #F59E0B;
}

.trust-rating-score {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.trust-rating-number {
  font-size: 16px;
  font-weight: 600;
  color: #000000;
}

.trust-rating-reviews {
  font-size: 14px;
  font-weight: 400;
  color: #7C7C7C;
}

.trust-certifications {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.certification-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  padding: 10px 20px;
}

.cert-icon {
  width: 18px;
  height: 18px;
  color: #10B981;
  flex-shrink: 0;
}

.cert-text {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
}

/* Tablet */
@media (min-width: 768px) {
  .trust-rating-section {
    padding: 80px 0;
  }

  .trust-rating-bg-img--mobile {
    display: none;
  }

  .trust-rating-bg-img--desktop {
    display: block;
  }

  .trust-rating-title {
    font-size: 36px;
  }

  .trust-rating-subtitle {
    font-size: 20px;
  }

  .trust-rating-cards {
    flex-direction: row;
    gap: 24px;
  }

  .trust-rating-card {
    flex: 1;
    padding: 48px 32px;
  }

  .trust-certifications {
    margin-top: 40px;
    gap: 16px;
  }

  .certification-pill {
    padding: 12px 24px;
  }

  .cert-text {
    font-size: 14px;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .trust-rating-section {
    padding: 100px 0;
  }

  .trust-rating-header {
    margin-bottom: 56px;
  }

  .trust-rating-title {
    font-size: 48px;
  }

  .trust-rating-subtitle {
    font-size: 24px;
  }

  .trust-rating-cards {
    gap: 32px;
  }

  .trust-rating-card {
    padding: 64px;
    gap: 24px;
  }

  .trust-rating-info {
    gap: 12px;
  }

  .trust-rating-logo {
    height: 64px;
  }

  .trust-rating-number {
    font-size: 18px;
  }

  .trust-rating-reviews {
    font-size: 16px;
  }

  .trust-certifications {
    margin-top: 48px;
  }

  .certification-pill {
    padding: 14px 28px;
  }

  .cert-icon {
    width: 20px;
    height: 20px;
  }

  .cert-text {
    font-size: 15px;
  }
}


/* ========================================
   ANIMATED CTA SECTION
   Video background with overlay and CTA
   ======================================== */

.uae-cta-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
}

/* Video Background */
.uae-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.uae-cta-video {
  position: absolute;
  width: 100%;
  height: 130%;
  inset-block-end: -30%;
  object-fit: cover;
}

/* Overlay - elegant teal tint with subtle darkening */
.uae-cta-overlay {
  position: absolute;
  inset: 0;
}

/* Layer 1: Deep cyan color shift */
.uae-cta-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 160, 170, 0.85);
  mix-blend-mode: multiply;
}

/* Layer 2: Depth gradient + center spotlight */
.uae-cta-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 70% at 50% 45%,
      rgba(0, 180, 180, 0.12) 0%,
      transparent 60%
    ),
    linear-gradient(
      to bottom,
      rgba(10, 30, 50, 0.6) 0%,
      rgba(0, 50, 60, 0.3) 40%,
      rgba(0, 60, 70, 0.15) 100%
    );
}

/* Content Container */
.uae-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  gap: 24px;
}

/* Decorative Icon */
.uae-cta-icon {
  width: 48px;
  height: auto;
}

/* Heading Wrapper */
.uae-cta-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Title */
.uae-cta-title {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-white);
  margin: 0;
}

.uae-cta-title-highlight {
  display: block;
}

/* Underline Decoration */
.uae-cta-underline {
  width: 180px;
  height: auto;
}

/* Buttons Container */
.uae-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  margin-top: 16px;
}

/* Button Base */
.uae-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 32px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.uae-cta-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.uae-cta-btn-text {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

/* Primary Button */
.uae-cta-btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 1px solid transparent;
}

.uae-cta-btn--primary .uae-cta-btn-text {
  color: var(--color-white);
}

.uae-cta-btn--primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-white);
}

.uae-cta-btn--primary:hover svg {
  transform: translateX(4px);
}

/* Secondary Button */
.uae-cta-btn--secondary {
  background: var(--color-white);
  color: #2A303B;
  border: 1px solid #F1F3F4;
}

.uae-cta-btn--secondary .uae-cta-btn-text {
  color: #2A303B;
}

.uae-cta-btn--secondary:hover {
  background: #F8F9FA;
  border-color: #E2E8F0;
  color: #2A303B;
}

.uae-cta-btn--secondary:hover svg {
  transform: translateX(4px);
}

/* RTL: Flip arrow icons */
[dir="rtl"] .uae-cta-btn svg {
  transform: scaleX(-1);
}

[dir="rtl"] .uae-cta-btn:hover svg {
  transform: scaleX(-1) translateX(4px);
}

/* ----------------------------------------
   Animated CTA Tablet (768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
  .uae-cta-section {
    min-height: 560px;
    padding: 80px 40px;
  }

  .uae-cta-inner {
    gap: 32px;
  }

  .uae-cta-heading {
    gap: 0;
  }

  .uae-cta-icon {
    width: 60px;
  }

  .uae-cta-title {
    font-size: 40px;
  }

  .uae-cta-underline {
    width: 220px;
    align-self: flex-end;
  }

  .uae-cta-buttons {
    flex-direction: row;
    max-width: none;
    width: auto;
  }

  .uae-cta-btn {
    padding: 16px 28px;
    font-size: 18px;
  }

  .uae-cta-btn-text {
    font-size: 18px;
  }
}

/* ----------------------------------------
   Animated CTA Desktop (992px+)
   ---------------------------------------- */
@media (min-width: 992px) {
  .uae-cta-section {
    min-height: 620px;
    padding: 100px 60px;
  }

  .uae-cta-inner {
    gap: 40px;
  }

  .uae-cta-icon {
    width: 75px;
  }

  .uae-cta-title {
    font-size: 48px;
  }

  .uae-cta-underline {
    width: 249px;
    margin-inline-end: 40px;
  }

  .uae-cta-btn {
    padding: 18px 32px;
  }
}
