/* Scoped CSS for Hats Option C: Editorial Split */
.hats-unified-philosophy.hats-option-c {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #ffffff;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}
.hats-unified-philosophy.hats-option-c * {
  box-sizing: border-box;
}

/* Bilingual Toggle Rules (English default / Arabic on lang=ar & body.rtl) */
.hats-unified-philosophy.hats-option-c .hats-lang-ar {
  display: none !important;
}
.hats-unified-philosophy.hats-option-c .hats-lang-en {
  display: inline !important;
}
.hats-unified-philosophy.hats-option-c .hats-lang-ar-block {
  display: none !important;
}
.hats-unified-philosophy.hats-option-c .hats-lang-en-block {
  display: block !important;
}

/* When Arabic is active */
html[lang="ar"] .hats-unified-philosophy.hats-option-c,
html[dir="rtl"] .hats-unified-philosophy.hats-option-c,
body.rtl .hats-unified-philosophy.hats-option-c {
  direction: rtl;
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}

html[lang="ar"] .hats-unified-philosophy.hats-option-c .hats-lang-ar,
html[dir="rtl"] .hats-unified-philosophy.hats-option-c .hats-lang-ar,
body.rtl .hats-unified-philosophy.hats-option-c .hats-lang-ar {
  display: inline !important;
}
html[lang="ar"] .hats-unified-philosophy.hats-option-c .hats-lang-en,
html[dir="rtl"] .hats-unified-philosophy.hats-option-c .hats-lang-en,
body.rtl .hats-unified-philosophy.hats-option-c .hats-lang-en {
  display: none !important;
}

html[lang="ar"] .hats-unified-philosophy.hats-option-c .hats-lang-ar-block,
html[dir="rtl"] .hats-unified-philosophy.hats-option-c .hats-lang-ar-block,
body.rtl .hats-unified-philosophy.hats-option-c .hats-lang-ar-block {
  display: block !important;
}
html[lang="ar"] .hats-unified-philosophy.hats-option-c .hats-lang-en-block,
html[dir="rtl"] .hats-unified-philosophy.hats-option-c .hats-lang-en-block,
body.rtl .hats-unified-philosophy.hats-option-c .hats-lang-en-block {
  display: none !important;
}

/*
 * Reveal animation. Content is visible by default and is hidden only after
 * JavaScript initializes successfully, preventing permanently blank widgets.
 */
.hats-unified-philosophy .hats-reveal {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.hats-unified-philosophy.hats-animations-ready .hats-reveal:not(.is-revealed) {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  will-change: opacity, transform;
}
.hats-unified-philosophy .hats-reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.hats-unified-philosophy.hats-animation-disabled .hats-reveal,
body.elementor-editor-active .hats-unified-philosophy .hats-reveal,
body.elementor-editor-preview .hats-unified-philosophy .hats-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .hats-unified-philosophy .hats-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* Override Montoya theme's Six Caps on headings */
.hats-unified-philosophy.hats-option-c h2,
.hats-unified-philosophy.hats-option-c h3,
.hats-unified-philosophy.hats-option-c h4 {
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
  text-transform: none !important;
  letter-spacing: -0.02em !important;
  font-weight: 600 !important;
  color: #ffffff !important;
}

html[lang="ar"] .hats-unified-philosophy.hats-option-c h2,
html[lang="ar"] .hats-unified-philosophy.hats-option-c h3,
html[lang="ar"] .hats-unified-philosophy.hats-option-c h4,
body.rtl .hats-unified-philosophy.hats-option-c h2,
body.rtl .hats-unified-philosophy.hats-option-c h3,
body.rtl .hats-unified-philosophy.hats-option-c h4 {
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

/* Option C: 2-Column Editorial Split Grid */
.hats-editorial-split-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 960px) {
  .hats-editorial-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Left Sticky Column with header clearance */
.hats-split-left-col {
  position: sticky;
  top: 140px;
  scroll-margin-top: 140px;
}

@media (max-width: 960px) {
  .hats-split-left-col {
    position: static;
    top: auto;
  }
}

.hats-split-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  margin-bottom: 14px;
}
html[lang="ar"] .hats-split-tag,
body.rtl .hats-split-tag {
  letter-spacing: 0.04em;
}

.hats-split-title {
  font-size: clamp(26px, 3.2vw, 38px) !important;
  line-height: 1.25 !important;
  margin: 0 0 16px !important;
  font-weight: 700 !important;
}
.hats-split-title .italic-quote {
  font-style: italic;
  color: #ffffff;
  display: inline-block;
}
html[lang="ar"] .hats-split-title .italic-quote,
body.rtl .hats-split-title .italic-quote {
  font-style: normal;
}

.hats-split-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 20px;
  line-height: 1.5;
}

/* Left Column Inquiries Stack */
.hats-split-inquiries {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 28px;
}
.hats-split-inquiry-box {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
}
.hats-split-inquiry-box:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateX(6px);
}
.hats-split-inquiry-box.hats-reveal.is-revealed:hover {
  transform: translateX(6px);
}
html[lang="ar"] .hats-split-inquiry-box:hover,
html[dir="rtl"] .hats-split-inquiry-box:hover,
body.rtl .hats-split-inquiry-box:hover {
  transform: translateX(-6px);
}

.hats-split-inquiry-idx {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  flex-shrink: 0;
}

.hats-split-bridge-quote {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.025);
  border-left: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
html[lang="ar"] .hats-split-bridge-quote,
body.rtl .hats-split-bridge-quote {
  border-left: none;
  border-right: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px 0 0 12px;
  line-height: 1.65;
}

/* Right Column Cards Stack */
.hats-split-right-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hats-split-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 28px 28px;
  text-align: left;
}
html[lang="ar"] .hats-split-card,
body.rtl .hats-split-card {
  text-align: right;
}
.hats-split-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.hats-split-card.hats-reveal.is-revealed:hover {
  transform: translate3d(0, -4px, 0);
}

.hats-split-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.hats-split-card-num {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hats-card-accent, rgba(255, 255, 255, 0.55));
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hats-split-card-badge {
  color: var(--hats-card-accent, rgba(255, 255, 255, 0.72));
  background: color-mix(in srgb, var(--hats-card-accent, #ffffff) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--hats-card-accent, #ffffff) 18%, transparent);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.hats-split-card-title {
  font-size: 21px !important;
  font-weight: 600 !important;
  margin: 0 0 10px !important;
  line-height: 1.3 !important;
}

.hats-split-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

html[lang="ar"] .hats-split-card-num,
html[dir="rtl"] .hats-split-card-num,
body.rtl .hats-split-card-num,
html[lang="ar"] .hats-split-card-badge,
html[dir="rtl"] .hats-split-card-badge,
body.rtl .hats-split-card-badge {
  letter-spacing: 0.02em;
}

@supports not (background: color-mix(in srgb, white 10%, transparent)) {
  .hats-split-card-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .hats-unified-philosophy.hats-option-c {
    padding: 30px 16px 60px;
  }
  .hats-split-card {
    padding: 22px 18px;
  }
  .hats-split-card-title {
    font-size: 18px !important;
  }
  .hats-split-card-meta {
    gap: 12px;
    align-items: flex-start;
  }
}
