/**
 * Al-Massa Al-Zarqaa — modern events theme (v2)
 * Loaded after style.css
 */

:root {
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --header-h: 92px;
  --accent-glow: rgba(43, 101, 236, 0.22);
  --surface-glass: rgba(255, 255, 255, 0.88);
  --shadow-card: 0 18px 48px rgba(10, 25, 49, 0.1);
  --shadow-hover: 0 24px 56px rgba(10, 25, 49, 0.16);
}

html,
body {
  font-family: "Plus Jakarta Sans", "Tajawal", sans-serif;
}

[dir="rtl"] body {
  font-family: "Tajawal", sans-serif;
}

[dir="ltr"] h1,
[dir="ltr"] h2,
[dir="ltr"] .section-title,
[dir="ltr"] .hero-content h1,
[dir="ltr"] .hero-pages h1,
[dir="ltr"] .details-title,
[dir="ltr"] .footer-cta h2,
[dir="ltr"] .contact-card-info h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ── Header glass ── */
.header {
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.is-home .header:not(.scrolled) {
  background: linear-gradient(180deg, rgba(10, 25, 49, 0.72) 0%, rgba(10, 25, 49, 0) 100%);
}

.is-home .header:not(.scrolled) .nav-link,
.is-home .header:not(.scrolled) .header-phone,
.is-home .header:not(.scrolled) .lang-switch {
  color: rgba(248, 251, 255, 0.92) !important;
}

.is-home .header:not(.scrolled) .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.is-home .header:not(.scrolled) .lang-switch {
  border-color: rgba(255, 255, 255, 0.2);
}

.header.scrolled,
body:not(.is-home) .header {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(10, 25, 49, 0.08);
  box-shadow: 0 8px 32px rgba(10, 25, 49, 0.06);
}

.header .logo-img {
  height: 72px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
}

.is-home .header:not(.scrolled) .logo-img {
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

.header .nav-link::after {
  height: 2px;
  border-radius: var(--radius-pill);
  bottom: 2px;
}

.header-cta,
.lang-switch,
.header .navbar-toggler {
  border-radius: var(--radius-pill);
}

.header-cta {
  box-shadow: 0 8px 24px var(--accent-glow);
}

.lang-switch i {
  border-radius: var(--radius-pill);
}

#mobileMenu .mobile-menu-close,
#mobileMenu .mobile-menu-social a {
  border-radius: var(--radius);
}

#mobileMenu .offcanvas-header {
  border-bottom-color: rgba(43, 101, 236, 0.2);
}

/* ── Buttons ── */
.btn-learn-more-creative,
.btn-primary-custom,
.btn-more,
.header-cta,
.contact-submit-button {
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 28px var(--accent-glow);
}

.btn-learn-more-creative .btn-icon-wrapper {
  border-radius: var(--radius-pill);
}

.btn-hero-outline {
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.08);
}

.btn-hero-outline:hover {
  background: #fff;
  box-shadow: var(--shadow-card);
}

.section-label {
  padding: 6px 14px 6px 6px;
  background: rgba(43, 101, 236, 0.08);
  border: 1px solid rgba(43, 101, 236, 0.14);
  border-radius: var(--radius-pill);
  text-transform: none;
  letter-spacing: 0.02em;
}

.section-label-icon {
  border-radius: var(--radius-pill);
  width: 32px;
  height: 32px;
}

.section-title {
  max-width: 20ch;
  line-height: 1.15;
}

/* ── Hero ── */
.hero-section {
  background: var(--forest);
}

.hero-veil {
  background:
    linear-gradient(105deg, rgba(10, 25, 49, 0.92) 0%, rgba(10, 25, 49, 0.55) 48%, rgba(10, 25, 49, 0.25) 100%),
    linear-gradient(180deg, rgba(10, 25, 49, 0.15) 0%, rgba(10, 25, 49, 0.65) 100%);
}

[dir="ltr"] .hero-veil {
  background:
    linear-gradient(255deg, rgba(10, 25, 49, 0.92) 0%, rgba(10, 25, 49, 0.55) 48%, rgba(10, 25, 49, 0.25) 100%),
    linear-gradient(180deg, rgba(10, 25, 49, 0.15) 0%, rgba(10, 25, 49, 0.65) 100%);
}

.hero-content h1 {
  max-width: 14ch;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.hero-eyebrow {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  text-transform: none;
  letter-spacing: 0.04em;
}

.hero-dock {
  background: linear-gradient(180deg, transparent, rgba(10, 25, 49, 0.85));
  padding-bottom: 28px;
}

.hero-dock-inner {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-pager-item {
  border-radius: var(--radius-pill);
  transition: background 0.25s ease, color 0.25s ease;
}

.hero-pager-item.is-active {
  box-shadow: 0 8px 20px var(--accent-glow);
}

.hero-nav {
  border-radius: var(--radius-pill);
}

.hero-slide-index {
  opacity: 0.08;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Trust strip (replaces ticker look) ── */
.trust-strip {
  background: var(--forest);
  border-block: 1px solid rgba(43, 101, 236, 0.25);
  padding: 20px 0;
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-strip__grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(43, 101, 236, 0.2);
  border-radius: var(--radius);
  color: rgba(248, 251, 255, 0.88);
  font-weight: 700;
  font-size: 14px;
}

.trust-strip__grid i {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(43, 101, 236, 0.2);
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ticker {
  display: none;
}

/* ── About ── */
.about-section {
  background: linear-gradient(180deg, var(--stone) 0%, var(--white) 100%);
}

.about-media {
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about-media img {
  clip-path: none;
  border-radius: var(--radius-lg);
}

.about-media::after {
  display: none;
}

.about-spotlight__chip {
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
}

.about-metrics {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
}

.stat-card {
  border-inline-end-color: rgba(43, 101, 236, 0.25);
}

.about-pills li {
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(10, 25, 49, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-pills li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ── Services grid ── */
.products-section {
  background: var(--stone);
}

.product-mosaic {
  gap: 20px;
}

.product-card {
  border-radius: var(--radius-lg);
  min-height: 360px;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-card img {
  border-radius: var(--radius-lg);
}

.product-card__veil {
  background: linear-gradient(180deg, rgba(10, 25, 49, 0.05) 0%, rgba(10, 25, 49, 0.82) 100%);
  border-radius: var(--radius-lg);
}

.product-card__icon {
  border-radius: var(--radius);
  background: rgba(43, 101, 236, 0.25);
}

.service-grid {
  gap: 20px;
}

.service-tile {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-tile__body {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(10, 25, 49, 0.05) 0%, rgba(10, 25, 49, 0.82) 100%);
}

.service-tile__icon {
  border-radius: var(--radius);
  background: rgba(43, 101, 236, 0.25);
}

/* ── Why us — stacked layout ── */
.why-section--stacked .why-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.why-section--stacked .section-label {
  margin-inline: auto;
}

.why-section--stacked .section-title {
  margin-inline: auto;
  max-width: none;
}

.why-section--stacked .why-layout,
.why-section--stacked .why-intro,
.why-section--stacked .why-list,
.why-section--stacked .why-visual-card {
  display: none;
}

.why-banner {
  position: relative;
  margin: 0 0 28px;
  height: clamp(220px, 32vw, 380px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.why-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.why-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 49, 0.05) 0%, rgba(10, 25, 49, 0.55) 100%);
  pointer-events: none;
}

.why-banner__badge {
  position: absolute;
  inset-inline-start: 24px;
  bottom: 24px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px;
  background: var(--gold);
  color: var(--on-accent);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px var(--accent-glow);
  margin: 0;
}

.why-banner__badge strong {
  font-size: 1.15rem;
  line-height: 1.2;
}

.why-banner__badge span {
  font-size: 13px;
  opacity: 0.9;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.why-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 22px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(43, 101, 236, 0.22);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(43, 101, 236, 0.42);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.why-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: rgba(43, 101, 236, 0.22);
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.why-card__num {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.why-card h4 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.35;
}

.why-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(248, 251, 255, 0.68);
}

.why-section {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(43, 101, 236, 0.18), transparent 60%),
    linear-gradient(180deg, var(--forest) 0%, #061428 100%);
}

.why-section .section-label {
  color: var(--gold);
}

.why-section .section-title {
  color: var(--white);
}

/* legacy why (fallback if partial not used) */
.why-visual-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.why-visual-img {
  border-radius: var(--radius-lg);
}

.why-visual-caption {
  border-radius: var(--radius);
}

.why-feature-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(43, 101, 236, 0.22);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.why-feature-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(43, 101, 236, 0.4);
}

/* ── Contact ── */
.contact-section {
  background: var(--white);
}

.contact-grid {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}

.contact-card-info {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-light) 100%);
}

.contact-card-form {
  border: 0;
  border-inline-start: 1px solid var(--line);
}

.contact-card-form .form-control,
.contact-card-form .form-select {
  border-radius: var(--radius);
}

.contact-card-form .form-control:focus,
.contact-card-form .form-select:focus {
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* ── Inner pages ── */
.hero-pages::before {
  background: linear-gradient(180deg, rgba(10, 25, 49, 0.78), rgba(10, 25, 49, 0.9));
}

.hero-pages h1 {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ── Details ── */
.details-article {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.details-hero img {
  border-radius: 0;
}

.details-pill {
  border-radius: var(--radius-pill);
}

.details-quote {
  border-radius: var(--radius);
  background: rgba(43, 101, 236, 0.08);
}

.details-step,
.details-side-card {
  border-radius: var(--radius);
}

.details-list li::before {
  border-radius: var(--radius-pill);
}

.story-photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.story-photo::after {
  display: none;
}

.story-photo img {
  border-radius: var(--radius-lg);
}

/* ── Footer ── */
.footer-cta {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px var(--accent-glow);
}

.footer-cta-btn {
  border-radius: var(--radius-pill);
}

.footer-social-list a {
  border-radius: var(--radius-pill);
  border-color: rgba(43, 101, 236, 0.22);
}

.footer-bottom {
  border-top-color: rgba(43, 101, 236, 0.2);
}

/* ── Floating ── */
.back-to-top-btn,
.floating-btn {
  border-radius: var(--radius-pill);
}

/* ── Fix legacy gold tints ── */
.loading .spinner {
  border-color: rgba(43, 101, 236, 0.2);
}

.hero-dock-inner,
.stat-card,
.why-feature-card,
.footer-bottom,
.footer-social-list a,
#mobileMenu .offcanvas-header {
  border-color: rgba(43, 101, 236, 0.2);
}

@media (max-width: 991.98px) {
  :root {
    --header-h: 84px;
  }

  .header .logo-img {
    height: 64px;
  }

  .trust-strip__grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-cards {
    grid-template-columns: 1fr 1fr;
  }

  .why-banner {
    height: 240px;
  }

  .contact-grid {
    border-radius: var(--radius);
  }

  .footer-cta {
    border-radius: var(--radius);
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .trust-strip__grid {
    grid-template-columns: 1fr;
  }

  .why-cards {
    grid-template-columns: 1fr;
  }

  .why-banner__badge {
    inset-inline-start: 16px;
    bottom: 16px;
    padding: 10px 14px;
  }

  .product-mosaic,
  .service-grid {
    grid-template-columns: 1fr;
  }
}
